import common classes from bpy.types, saves ~1000 python getattrs on startup.

This commit is contained in:
2011-08-12 06:57:00 +00:00
parent 8fd246cb70
commit b374ab919a
59 changed files with 624 additions and 565 deletions

View File

@@ -18,6 +18,7 @@
# <pep8 compliant>
import bpy
from bpy.types import Panel
class ConstraintButtonsPanel():
@@ -755,7 +756,7 @@ class ConstraintButtonsPanel():
layout.label("Blender 2.5 has no py-constraints")
class OBJECT_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel):
class OBJECT_PT_constraints(ConstraintButtonsPanel, Panel):
bl_label = "Object Constraints"
bl_context = "constraint"
@@ -779,7 +780,7 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel):
self.draw_constraint(context, con)
class BONE_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel):
class BONE_PT_constraints(ConstraintButtonsPanel, Panel):
bl_label = "Bone Constraints"
bl_context = "bone_constraint"