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:
authorCampbell Barton <ideasman42@gmail.com>2019-09-05 23:02:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-05 23:05:31 +0300
commit524e000678be4b54eb1ed05897415e4d3bdd2552 (patch)
treebffdd135240abaf5f6497d644abd65e604d38a8b /release/scripts/startup/bl_ui/properties_object.py
parent051f98baf3e4bb747385d04645f4ab75633b511e (diff)
Revert "UI: Add Dimensions to Object Transform panel"
This reverts commit 82fc9d778eecca16f867fd6e3aa3a2c04d86df4a. This doesn't use the workaround from v3d_object_dimension_buts needed for dimensions properly update. Doing this would require moving the panel to C. Issues from T69536 should be resolved before adding this back.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_object.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_object.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index 9d9436f28d7..d2ba047e07e 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -97,26 +97,6 @@ class OBJECT_PT_transform(ObjectButtonsPanel, Panel):
row.prop(ob, "lock_scale", text="", emboss=False, icon='DECORATE_UNLOCKED')
-class OBJECT_PT_transform_dimensions(ObjectButtonsPanel, Panel):
- bl_label = "Dimensions"
- bl_parent_id = "OBJECT_PT_transform"
- bl_options = {'DEFAULT_CLOSED'}
-
- @classmethod
- def poll(cls, context):
- ob = context.object
- obj_type = ob.type
- return obj_type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT', 'ARMATURE', 'LATTICE'}
-
- def draw(self, context):
- layout = self.layout
- layout.use_property_split = True
-
- ob = context.object
-
- layout.prop(ob, "dimensions", text=" ")
-
-
class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel):
bl_label = "Delta Transform"
bl_parent_id = "OBJECT_PT_transform"
@@ -427,7 +407,6 @@ class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, Panel):
classes = (
OBJECT_PT_context_object,
OBJECT_PT_transform,
- OBJECT_PT_transform_dimensions,
OBJECT_PT_delta_transform,
OBJECT_PT_relations,
COLLECTION_MT_context_menu,