[Bf-extensions-cvs] [23b448c] master: Fix: Update for new Tabs
Eugenio Pignataro
noreply at git.blender.org
Mon Jan 6 13:50:40 CET 2014
Commit: 23b448c355d5fa1249119b40b916cbac9b4f67f8
Author: Eugenio Pignataro
Date: Mon Jan 6 09:50:23 2014 -0300
https://developer.blender.org/rBAC23b448c355d5fa1249119b40b916cbac9b4f67f8
Fix: Update for new Tabs
===================================================================
M oscurart_tools/__init__.py
===================================================================
diff --git a/oscurart_tools/__init__.py b/oscurart_tools/__init__.py
index 5f5dc23..b3f335e 100644
--- a/oscurart_tools/__init__.py
+++ b/oscurart_tools/__init__.py
@@ -43,6 +43,10 @@ from oscurart_tools.oscurart_shapes import *
from oscurart_tools.oscurart_render import *
from oscurart_tools.oscurart_overrides import *
+class View3DOscPanel():
+ bl_space_type = 'VIEW_3D'
+ bl_region_type = 'TOOLS'
+
## CREA PANELES EN TOOLS
bpy.types.Scene.osc_object_tools = bpy.props.BoolProperty(default=False)
bpy.types.Scene.osc_mesh_tools = bpy.props.BoolProperty(default=False)
@@ -51,11 +55,16 @@ bpy.types.Scene.osc_render_tools = bpy.props.BoolProperty(default=False)
bpy.types.Scene.osc_files_tools = bpy.props.BoolProperty(default=False)
bpy.types.Scene.osc_overrides_tools = bpy.props.BoolProperty(default=False)
# PANEL DE CONTROL
-class OscPanelControl(bpy.types.Panel):
+class OscPanelControl(View3DOscPanel, bpy.types.Panel):
+ """
bl_space_type = 'VIEW_3D'
bl_region_type = 'TOOLS'
bl_label = "Oscurart Tools"
bl_options = {'DEFAULT_CLOSED'}
+ """
+ bl_category = "Oscurart Tools"
+ #bl_context = "objectmode"
+ bl_label = "Oscurart Tools"
def draw(self,context):
active_obj = context.active_object
More information about the Bf-extensions-cvs
mailing list