Assembly: prevent user to remove core properties

This commit is contained in:
Florian Foinant-Willig
2025-03-16 15:00:15 +01:00
committed by Kacper Donat
parent 700c9a8a38
commit d5e2fdf8fd
3 changed files with 39 additions and 0 deletions

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