Assembly: prevent user to remove core properties

This commit is contained in:
Florian Foinant-Willig
2025-04-22 23:52:17 +02:00
committed by Kacper Donat
parent 31781a0f43
commit b41b294292
3 changed files with 39 additions and 0 deletions
+4
View File
@@ -252,6 +252,7 @@ class ExplodedViewStep:
"References",
"Exploded Move",
QT_TRANSLATE_NOOP("App::Property", "The objects moved by the move"),
locked=True,
)
if not hasattr(evStep, "MovementTransform"):
@@ -263,6 +264,7 @@ class ExplodedViewStep:
"App::Property",
"This is the movement of the move. The end placement is the result of the start placement * this placement.",
),
locked=True,
)
if not hasattr(evStep, "MoveType"):
@@ -271,6 +273,7 @@ class ExplodedViewStep:
"MoveType",
"Exploded Move",
QT_TRANSLATE_NOOP("App::Property", "The type of the move"),
locked=True,
)
def migrationScript(self, evStep):
@@ -286,6 +289,7 @@ class ExplodedViewStep:
"References",
"Exploded Move",
QT_TRANSLATE_NOOP("App::Property", "The objects moved by the move"),
locked=True,
)
rootObj = None