[Bf-blender-cvs] [831c1bd] alembic_basic_io: UI: use boxes to separate cache file and modifier/constraint properties.
Kévin Dietrich
noreply at git.blender.org
Tue Jul 12 16:04:13 CEST 2016
Commit: 831c1bd83a9abe494f6e4ed783e463bc26f5f37a
Author: Kévin Dietrich
Date: Tue Jul 12 15:30:42 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB831c1bd83a9abe494f6e4ed783e463bc26f5f37a
UI: use boxes to separate cache file and modifier/constraint properties.
Some people were confused by the scope of the properties.
===================================================================
M release/scripts/startup/bl_ui/properties_constraint.py
M release/scripts/startup/bl_ui/properties_data_modifier.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py
index ede202c..f6cde00 100644
--- a/release/scripts/startup/bl_ui/properties_constraint.py
+++ b/release/scripts/startup/bl_ui/properties_constraint.py
@@ -881,12 +881,17 @@ class ConstraintButtonsPanel:
layout.operator("clip.constraint_to_fcurve")
def TRANSFORMCACHE(self, context, layout, con):
- layout.template_cache_file(con, "cache_file")
+ layout.label(text="Cache File Properties:")
+ box = layout.box()
+ box.template_cache_file(con, "cache_file")
cache_file = con.cache_file
-
+
+ layout.label(text="Constraint Properties:")
+ box = layout.box()
+
if cache_file != None:
- layout.prop_search(con, "abc_object_path", cache_file, "object_paths")
+ box.prop_search(con, "abc_object_path", cache_file, "object_paths")
def SCRIPT(self, context, layout, con):
layout.label("Blender 2.6 doesn't support python constraints yet")
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 275bef7..8f9db4c 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -223,11 +223,17 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
row.prop(md, "flip_axis")
def MESH_SEQUENCE_CACHE(self, layout, ob, md):
- layout.template_cache_file(md, "cache_file")
+ layout.label(text="Cache File Properties:")
+ box = layout.box()
+ box.template_cache_file(md, "cache_file")
cache_file = md.cache_file
+
+ layout.label(text="Modifier Properties:")
+ box = layout.box()
+
if cache_file != None:
- layout.prop_search(md, "abc_object_path", cache_file, "object_paths")
+ box.prop_search(md, "abc_object_path", cache_file, "object_paths")
def CAST(self, layout, ob, md):
split = layout.split(percentage=0.25)
More information about the Bf-blender-cvs
mailing list