rna: move metaball.active_element to metaball.elements.active
[blender.git] / release / scripts / ui / properties_data_metaball.py
index 83e5e642d0ed246c1bee0bd9dad3944ce3f090b6..747ed56c12e10158d3987a9a78dc3fc71fb12f62 100644 (file)
@@ -80,12 +80,12 @@ class DATA_PT_metaball_element(DataButtonsPanel, bpy.types.Panel):
 
     @classmethod
     def poll(cls, context):
-        return (context.meta_ball and context.meta_ball.active_element)
+        return (context.meta_ball and context.meta_ball.elements.active)
 
     def draw(self, context):
         layout = self.layout
 
-        metaelem = context.meta_ball.active_element
+        metaelem = context.meta_ball.elements.active
 
         layout.prop(metaelem, "type")