fix [#26754] Live Edit and Editing UI scripts don't work
authorCampbell Barton <ideasman42@gmail.com>
Mon, 4 Apr 2011 10:13:04 +0000 (10:13 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 4 Apr 2011 10:13:04 +0000 (10:13 +0000)
43 files changed:
release/scripts/startup/bl_ui/properties_animviz.py
release/scripts/startup/bl_ui/properties_data_armature.py
release/scripts/startup/bl_ui/properties_data_bone.py
release/scripts/startup/bl_ui/properties_data_camera.py
release/scripts/startup/bl_ui/properties_data_curve.py
release/scripts/startup/bl_ui/properties_data_empty.py
release/scripts/startup/bl_ui/properties_data_lamp.py
release/scripts/startup/bl_ui/properties_data_lattice.py
release/scripts/startup/bl_ui/properties_data_mesh.py
release/scripts/startup/bl_ui/properties_data_metaball.py
release/scripts/startup/bl_ui/properties_data_modifier.py
release/scripts/startup/bl_ui/properties_game.py
release/scripts/startup/bl_ui/properties_material.py
release/scripts/startup/bl_ui/properties_object.py
release/scripts/startup/bl_ui/properties_object_constraint.py
release/scripts/startup/bl_ui/properties_particle.py
release/scripts/startup/bl_ui/properties_physics_cloth.py
release/scripts/startup/bl_ui/properties_physics_common.py
release/scripts/startup/bl_ui/properties_physics_field.py
release/scripts/startup/bl_ui/properties_physics_fluid.py
release/scripts/startup/bl_ui/properties_physics_smoke.py
release/scripts/startup/bl_ui/properties_physics_softbody.py
release/scripts/startup/bl_ui/properties_render.py
release/scripts/startup/bl_ui/properties_scene.py
release/scripts/startup/bl_ui/properties_texture.py
release/scripts/startup/bl_ui/properties_world.py
release/scripts/startup/bl_ui/space_console.py
release/scripts/startup/bl_ui/space_dopesheet.py
release/scripts/startup/bl_ui/space_filebrowser.py
release/scripts/startup/bl_ui/space_graph.py
release/scripts/startup/bl_ui/space_image.py
release/scripts/startup/bl_ui/space_info.py
release/scripts/startup/bl_ui/space_logic.py
release/scripts/startup/bl_ui/space_nla.py
release/scripts/startup/bl_ui/space_node.py
release/scripts/startup/bl_ui/space_outliner.py
release/scripts/startup/bl_ui/space_sequencer.py
release/scripts/startup/bl_ui/space_text.py
release/scripts/startup/bl_ui/space_time.py
release/scripts/startup/bl_ui/space_userpref.py
release/scripts/startup/bl_ui/space_userpref_keymap.py
release/scripts/startup/bl_ui/space_view3d.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

index cebe58291d8e2c829a53927809df19dbefac05a2..eb1bbfd2fb15826a56befdacd237b41356674212 100644 (file)
@@ -92,3 +92,6 @@ class OnionSkinButtonsPanel():
         col = split.column()
         col.label(text="Display:")
         col.prop(arm, "show_only_ghost_selected", text="Selected Only")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 4823d36563368160e5fd92b881ab7541c9b6c64d..9477dc866ab21e0c0d2add7a33c14ed342dc4ce2 100644 (file)
@@ -310,3 +310,6 @@ class DATA_PT_custom_props_arm(ArmatureButtonsPanel, PropertyPanel, bpy.types.Pa
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "object.data"
     _property_type = bpy.types.Armature
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 271d40642a216b2418d4967c19cd708a392f9665..9fc055e934367a393e3b429df055a3aedcf919cd 100644 (file)
@@ -368,3 +368,6 @@ class BONE_PT_custom_props(BoneButtonsPanel, PropertyPanel, bpy.types.Panel):
             return "active_pose_bone"
         else:
             return "active_bone"
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 6427e1c5180eb4d05aaf4de1ab08e3aa10d950b4..24163dc1f3022cf5f05c95bf6b68378a509749ad 100644 (file)
@@ -134,3 +134,6 @@ class DATA_PT_custom_props_camera(CameraButtonsPanel, PropertyPanel, bpy.types.P
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "object.data"
     _property_type = bpy.types.Camera
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 58047db63d654cc964b13816f13981a6c563e713..623daffac9326500257b69eba1453da0b72b8cf7 100644 (file)
@@ -390,3 +390,6 @@ class DATA_PT_custom_props_curve(CurveButtonsPanel, PropertyPanel, bpy.types.Pan
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "object.data"
     _property_type = bpy.types.Curve
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 8b5c9f093a0586f8a62b3c870cb0ffa50c1bca80..e46cd1270adb2fa9c014672ee93a2fb197d8753d 100644 (file)
@@ -40,3 +40,6 @@ class DATA_PT_empty(DataButtonsPanel, bpy.types.Panel):
 
         layout.prop(ob, "empty_draw_type", text="Display")
         layout.prop(ob, "empty_draw_size", text="Size")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 00919d64ca53899dd25c3f7caeb570fc4af1d49a..36010c8b51100b82287e4cc2d4e8cf15f21efaf6 100644 (file)
@@ -384,3 +384,6 @@ class DATA_PT_custom_props_lamp(DataButtonsPanel, PropertyPanel, bpy.types.Panel
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "object.data"
     _property_type = bpy.types.Lamp
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 5f2fa4b4920fc6fdd1abb4fb9e2e197e74891e51..cd719b6fe8488c12ee503b559ea654b6aff50361 100644 (file)
@@ -80,3 +80,6 @@ class DATA_PT_custom_props_lattice(DataButtonsPanel, PropertyPanel, bpy.types.Pa
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "object.data"
     _property_type = bpy.types.Lattice
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 62e60cd7a1675f0d644c954f93499d64ba70e4cd..b1d1789fadd0024fb5315e6e7168a3e092fc2a3e 100644 (file)
@@ -349,3 +349,6 @@ class DATA_PT_custom_props_mesh(MeshButtonsPanel, PropertyPanel, bpy.types.Panel
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "object.data"
     _property_type = bpy.types.Mesh
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 952df9f5e3638e2aead8ca8f24391c4e85fb3528..81ba15d6f407b36e755e62d9e38bd67b9882fc38 100644 (file)
@@ -116,3 +116,6 @@ class DATA_PT_custom_props_metaball(DataButtonsPanel, PropertyPanel, bpy.types.P
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "object.data"
     _property_type = bpy.types.MetaBall
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 848779c05b16691221ccc7b67174857e9ab5e3d3..0e1bd870e7d63342e7bc778ab95ed7e63b6d114f 100644 (file)
@@ -699,3 +699,6 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
         col = split.column()
         col.prop(md, "width", slider=True)
         col.prop(md, "narrowness", slider=True)
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index d04f486cf1e4ca34ca7599454c42ff3959499119..a151234e184c6cf3c25d61b431a1caad882d47f9 100644 (file)
@@ -496,3 +496,6 @@ class WORLD_PT_game_physics(WorldButtonsPanel, bpy.types.Panel):
             col = split.column()
             col.label(text="Logic Steps:")
             col.prop(gs, "logic_step_max", text="Max")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index ff3153bbec91c97ea3fcdbc55cb4df57b1dc7eaa..cb4e07ce1381a982db440964f74989cd41781c39 100644 (file)
@@ -967,3 +967,6 @@ class MATERIAL_PT_custom_props(MaterialButtonsPanel, PropertyPanel, bpy.types.Pa
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "material"
     _property_type = bpy.types.Material
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index e906fc8d8409b32c8fe2c544a9c28e594f981897..2400a45620ad4f137e8c177f37d1529b8a9896f1 100644 (file)
@@ -335,3 +335,6 @@ class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel, bpy.types.Panel)
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "object"
     _property_type = bpy.types.Object
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index d182264e3dcb9d9a318f6fee73dfe242c5e74755..59f9ca16d1a15cf1531e593497bf3c5d78e98dd9 100644 (file)
@@ -779,3 +779,6 @@ class BONE_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel):
 
         for con in context.pose_bone.constraints:
             self.draw_constraint(context, con)
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index df464ed7fb0b1dab3c40e61f0c5d768dfd7d0ab4..5037308c6fd1560bd817dfb2b008627a75f39e3a 100644 (file)
@@ -1212,3 +1212,6 @@ class PARTICLE_PT_custom_props(ParticleButtonsPanel, PropertyPanel, bpy.types.Pa
     COMPAT_ENGINES = {'BLENDER_RENDER'}
     _context_path = "particle_system.settings"
     _property_type = bpy.types.ParticleSettings
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 25797f3da8f19f15cd1f6788c3c7b468d849145c..5c7882e97229e4546e1df9fb304f983dc87da2fd 100644 (file)
@@ -216,3 +216,6 @@ class PHYSICS_PT_cloth_field_weights(PhysicButtonsPanel, bpy.types.Panel):
     def draw(self, context):
         cloth = context.cloth.settings
         effector_weights_ui(self, context, cloth.effector_weights)
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index fea012cc7c6a08a31c14da1a8f791899ac23040d..bd6578489962fa8e4cc4d669e9187a89495dc8cd 100644 (file)
@@ -280,3 +280,6 @@ def basic_force_field_falloff_ui(self, context, field):
     sub = row.row()
     sub.active = field.use_max_distance
     sub.prop(field, "distance_max", text="Maximum")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index fd5549c6e0ab7945e90ba074c10a4ef74f8a9688..9f96f0a5b9f562a0c5acf365d85a98e83a20777b 100644 (file)
@@ -216,3 +216,6 @@ class PHYSICS_PT_collision(PhysicButtonsPanel, bpy.types.Panel):
 
             col.label(text="Force Fields:")
             col.prop(settings, "absorption", text="Absorption")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index dac8fe9195f13800dae95c59d8b7ee7e9b9e1e77..5da89d0090a59dbc1a51d0a1fbb26477687e1ad9 100644 (file)
@@ -281,3 +281,6 @@ class PHYSICS_PT_domain_particles(PhysicButtonsPanel, bpy.types.Panel):
         col = layout.column(align=True)
         col.prop(fluid, "tracer_particles")
         col.prop(fluid, "generate_particles")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 6cd1ceb58844f2203f55ad95114f03768e52bfcf..61d8d2e3825dcf1d2022b3cbefc64a20a5786f06 100644 (file)
@@ -201,3 +201,6 @@ class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel, bpy.types.Panel):
     def draw(self, context):
         domain = context.smoke.domain_settings
         effector_weights_ui(self, context, domain.effector_weights)
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 2bd1a8599c1126c895864d7367047d58ac0acb40..61115a0590e3dd185284ce5f8919d99a2026d17c 100644 (file)
@@ -261,3 +261,6 @@ class PHYSICS_PT_softbody_field_weights(PhysicButtonsPanel, bpy.types.Panel):
         softbody = md.settings
 
         effector_weights_ui(self, context, softbody.effector_weights)
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index e4be38c560bcbf9a4ee1ab696062758fbc3e8746..a3b10702fa71f78bc469a9aa18f70849476c3dae 100644 (file)
@@ -636,3 +636,6 @@ class RENDER_PT_bake(RenderButtonsPanel, bpy.types.Panel):
         sub.active = rd.use_bake_selected_to_active
         sub.prop(rd, "bake_distance")
         sub.prop(rd, "bake_bias")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 0f25523b5860ed3021a470bde753bba7cff499c3..7725f6616934489646f33b259a9cef60dc3458f0 100644 (file)
@@ -301,3 +301,6 @@ class ANIM_OT_keying_set_export(bpy.types.Operator):
         wm = context.window_manager
         wm.fileselect_add(self)
         return {'RUNNING_MODAL'}
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index f6fa86d64aa6fd010284f98847941a7409456ee0..32d59132a115a22bc424eeaa3ceba68543d10424 100644 (file)
@@ -1028,3 +1028,6 @@ class TEXTURE_PT_custom_props(TextureButtonsPanel, PropertyPanel, bpy.types.Pane
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "texture"
     _property_type = bpy.types.Texture
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 1b2dd4e26aa342628a40aa81501c5c9a5e96bd41..4f398c9fbd97daef2431bc37c12f3772bbf2ed10 100644 (file)
@@ -265,3 +265,6 @@ class WORLD_PT_custom_props(WorldButtonsPanel, PropertyPanel, bpy.types.Panel):
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
     _context_path = "world"
     _property_type = bpy.types.World
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 591765c154320e476af19c171462757d6ce8063a..da6c102100b4e8c0c4286af3d7dbcebb17c4f066 100644 (file)
@@ -158,3 +158,6 @@ class ConsoleLanguage(bpy.types.Operator):
             remove_duplicates=True)
 
         return {'FINISHED'}
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 1de30ffdea88d8ddb3d154a765c04821df92f4dc..8b54b073c4076c1237cdad3968065cb2c302fdf9 100644 (file)
@@ -364,3 +364,6 @@ class DOPESHEET_MT_gpencil_frame(bpy.types.Menu):
         #layout.separator()
         #layout.operator("action.copy")
         #layout.operator("action.paste")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 3033ba10388fc95e3ea6c7aca48e67454bebcdbb..73fe1a972525056ed9eaf3812c4ebe8e63fac6db 100644 (file)
@@ -72,3 +72,6 @@ class FILEBROWSER_HT_header(bpy.types.Header):
                 row.prop(params, "use_filter_font", text="")
                 row.prop(params, "use_filter_sound", text="")
                 row.prop(params, "use_filter_text", text="")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 4e1b5aa9a6bbd0646b3d07d4cbedfdcb5ed5f953..bfc1a0e3a23bb8942f6da6a46b5697f2dffc0956 100644 (file)
@@ -245,3 +245,6 @@ class GRAPH_MT_key_transform(bpy.types.Menu):
         layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND'
         layout.operator("transform.rotate", text="Rotate")
         layout.operator("transform.resize", text="Scale")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index aaf7336c5c76901ad676348f1f6895b4daa97af3..0bddfa8a694fee07f67da5d7e65cc79c19f2128e 100644 (file)
@@ -751,3 +751,6 @@ class IMAGE_PT_paint_curve(BrushButtonsPanel, bpy.types.Panel):
         row.operator("brush.curve_preset", icon="SHARPCURVE", text="").shape = 'SHARP'
         row.operator("brush.curve_preset", icon="LINCURVE", text="").shape = 'LINE'
         row.operator("brush.curve_preset", icon="NOCURVE", text="").shape = 'MAX'
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 24aca6065ac295c9d200bbbc52ea050943a0ad44..01f670d5b1e6ba35982d6a1301beb89c05ca0117 100644 (file)
@@ -399,3 +399,6 @@ class HELP_OT_operator_cheat_sheet(bpy.types.Operator):
         textblock.write('\n'.join(op_strings))
         self.report({'INFO'}, "See OperatorList.txt textblock")
         return {'FINISHED'}
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 6eb33376fb7b5f25138118ffe7a4af4a6a5cf897..7f7aba71a467e12b9aa935ed359301eee6c47625 100644 (file)
@@ -85,3 +85,6 @@ class LOGIC_MT_view(bpy.types.Menu):
         layout.column()
 
         layout.operator("logic.properties", icon='MENU_PANEL')
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 4f2988f6b4b40cd753e4658aeb83dfb5ee1bc0c2..4994114e81853e29e9795282c1988af603a2664f 100644 (file)
@@ -189,3 +189,6 @@ class NLA_MT_edit_transform(bpy.types.Menu):
         layout.operator("transform.translate", text="Grab/Move")
         layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND'
         layout.operator("transform.resize", text="Scale")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 7374b2ca260db7ffe99c0d3c893603acf3cb0212..fed1cc49c4cd13680880e86aa34df292a2664076 100644 (file)
@@ -191,3 +191,6 @@ class NODE_PT_properties(bpy.types.Panel):
         col.prop(snode, "backdrop_x", text="X")
         col.prop(snode, "backdrop_y", text="Y")
         col.operator("node.backimage_move", text="Move")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index aca213c77fe7d0148be98e215a2abba3ed9a197e..1f196cbd1917e648784c8c2ef515c7e3428579d5 100644 (file)
@@ -115,3 +115,6 @@ class OUTLINER_MT_edit_datablocks(bpy.types.Menu):
 
         col.operator("outliner.drivers_add_selected")
         col.operator("outliner.drivers_delete_selected")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 77ac18e86000aac452c63ea7c87a44caad08c596..2079aef640212315b1bff18a9aeace0c39cdf61b 100644 (file)
@@ -799,3 +799,6 @@ class SEQUENCER_PT_view(SequencerButtonsPanel_Output, bpy.types.Panel):
         if st.display_mode == 'WAVEFORM':
             col.prop(st, "show_separate_color")
         col.prop(st, "proxy_render_size")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index d21d695202321ed9f713d482733485985fc690c7..3d3fc8499af07333ef190bb851c30f8bf2fe3cf3 100644 (file)
@@ -297,3 +297,6 @@ class TEXT_MT_toolbox(bpy.types.Menu):
         layout.separator()
 
         layout.operator("text.run_script")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index f3c2bed5a1da30ba7b636ddbd7c1d40b105dd156..7e62465d1eef0cbb5155949757d7f4fa56c80351 100644 (file)
@@ -196,3 +196,6 @@ class TIME_MT_autokey(bpy.types.Menu):
 
         layout.prop_enum(tools, "auto_keying_mode", 'ADD_REPLACE_KEYS')
         layout.prop_enum(tools, "auto_keying_mode", 'REPLACE_KEYS')
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index a81561de93fabb4bb20ebd3945d1fadd61281f3f..4a45b55c010bd2f58304ee2565df97132b8bf68f 100644 (file)
@@ -1188,3 +1188,6 @@ class WM_OT_addon_expand(bpy.types.Operator):
         info = addon_utils.module_bl_info(mod)
         info["show_expanded"] = not info["show_expanded"]
         return {'FINISHED'}
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 3f1a625e8000aa0655055e6344274a929cc34ef1..2fbaae499e7ccfea5f8dded7b22cbc8a21fc35f0 100644 (file)
@@ -781,3 +781,6 @@ class WM_OT_keyconfig_remove(bpy.types.Operator):
         keyconfig = wm.keyconfigs.active
         wm.keyconfigs.remove(keyconfig)
         return {'FINISHED'}
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index c83affef0e8acabcce781dd4c5b9636bc3fc7bc7..7b4c1848ff99a1eed080b4f2b0ead7e7e8f03c03 100644 (file)
@@ -2354,3 +2354,6 @@ def unregister():
 
 if __name__ == "__main__":
     register()
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)
index 838d11ffbaf24d5c1031587c58d0a3ee31265c81..c29cd62769280c39873fafe0ab9ca9bccc3e8998 100644 (file)
@@ -1297,3 +1297,6 @@ class VIEW3D_PT_tools_particlemode(View3DPanel, bpy.types.Panel):
             sub = col.row()
             sub.active = pe.use_fade_time
             sub.prop(pe, "fade_frames", slider=True)
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)