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/ui/properties_data_metaball.py')
-rw-r--r--release/scripts/ui/properties_data_metaball.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/ui/properties_data_metaball.py b/release/scripts/ui/properties_data_metaball.py
index 1cce0cea66f..215ca207bc9 100644
--- a/release/scripts/ui/properties_data_metaball.py
+++ b/release/scripts/ui/properties_data_metaball.py
@@ -28,7 +28,8 @@ class DataButtonsPanel():
bl_region_type = 'WINDOW'
bl_context = "data"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.meta_ball
@@ -95,7 +96,8 @@ class DATA_PT_metaball(DataButtonsPanel, bpy.types.Panel):
class DATA_PT_metaball_element(DataButtonsPanel, bpy.types.Panel):
bl_label = "Active Element"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return (context.meta_ball and context.meta_ball.active_element)
def draw(self, context):