Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/startup')
-rw-r--r--release/scripts/startup/bl_ui/properties_constraint.py26
1 files changed, 19 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py
index da35ea680b8..14619ef916d 100644
--- a/release/scripts/startup/bl_ui/properties_constraint.py
+++ b/release/scripts/startup/bl_ui/properties_constraint.py
@@ -508,7 +508,18 @@ class ConstraintButtonsPanel(Panel):
layout.use_property_split = True
layout.use_property_decorate = True
- self.target_template(layout, con)
+ target_row = layout.row(align=True)
+ target_row.active = not con.use_eval_time
+ self.target_template(target_row, con)
+
+ row = layout.row(align=True, heading="Evaluation Time")
+ row.use_property_decorate = False
+ sub = row.row(align=True)
+ sub.prop(con, "use_eval_time", text="")
+ subsub = sub.row(align=True)
+ subsub.active = con.use_eval_time
+ subsub.prop(con, "eval_time", text="")
+ row.prop_decorator(con, "eval_time")
layout.prop(con, "mix_mode", text="Mix")
@@ -1105,13 +1116,14 @@ class ConstraintButtonsSubPanel(Panel):
layout.use_property_split = True
layout.use_property_decorate = True
- layout.prop(con, "transform_channel", text="Channel")
- layout.prop(con, "target_space")
-
- col = layout.column(align=True)
- col.prop(con, "min", text="Range Min")
- col.prop(con, "max", text="Max")
+ col = layout.column()
+ col.active = not con.use_eval_time
+ col.prop(con, "transform_channel", text="Channel")
+ col.prop(con, "target_space")
+ sub = col.column(align=True)
+ sub.prop(con, "min", text="Range Min")
+ sub.prop(con, "max", text="Max")
def draw_action_action(self, context):
layout = self.layout