Points: Prevent user to remove core properties

This commit is contained in:
Florian Foinant-Willig
2025-03-16 22:58:52 +01:00
committed by Kacper Donat
parent d6dd100266
commit 3de57e50c2

View File

@@ -58,7 +58,7 @@ def make_points_from_geometry(geometries, distance):
if len(points_and_normals[1]) > 0 and len(points_and_normals[0]) == len(
points_and_normals[1]
):
points.addProperty("Points::PropertyNormalList", "Normal")
points.addProperty("Points::PropertyNormalList", "Normal", locked=True)
points.Normal = points_and_normals[1]
points.purgeTouched()