renamed buttons ui files to properties to match UI name change, needed to update some imports too
This commit is contained in:
@@ -826,28 +826,28 @@ class PovrayRender(bpy.types.RenderEngine):
|
||||
bpy.types.register(PovrayRender)
|
||||
|
||||
# Use some of the existing buttons.
|
||||
import buttons_render
|
||||
buttons_render.RENDER_PT_render.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
buttons_render.RENDER_PT_dimensions.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
buttons_render.RENDER_PT_antialiasing.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
buttons_render.RENDER_PT_output.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
del buttons_render
|
||||
import properties_render
|
||||
properties_render.RENDER_PT_render.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
properties_render.RENDER_PT_dimensions.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
properties_render.RENDER_PT_antialiasing.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
properties_render.RENDER_PT_output.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
del properties_render
|
||||
|
||||
# Use only a subset of the world panels
|
||||
import buttons_world
|
||||
buttons_world.WORLD_PT_preview.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
buttons_world.WORLD_PT_context_world.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
buttons_world.WORLD_PT_world.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
buttons_world.WORLD_PT_mist.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
del buttons_world
|
||||
import properties_world
|
||||
properties_world.WORLD_PT_preview.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
properties_world.WORLD_PT_context_world.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
properties_world.WORLD_PT_world.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
properties_world.WORLD_PT_mist.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
del properties_world
|
||||
|
||||
# Example of wrapping every class 'as is'
|
||||
import buttons_material
|
||||
for member in dir(buttons_material):
|
||||
subclass = getattr(buttons_material, member)
|
||||
import properties_material
|
||||
for member in dir(properties_material):
|
||||
subclass = getattr(properties_material, member)
|
||||
try: subclass.COMPAT_ENGINES.add('POVRAY_RENDER')
|
||||
except: pass
|
||||
del buttons_material
|
||||
del properties_material
|
||||
|
||||
class RenderButtonsPanel(bpy.types.Panel):
|
||||
bl_space_type = 'PROPERTIES'
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
import bpy
|
||||
|
||||
from buttons_physics_common import point_cache_ui
|
||||
from buttons_physics_common import effector_weights_ui
|
||||
from buttons_physics_common import basic_force_field_settings_ui
|
||||
from buttons_physics_common import basic_force_field_falloff_ui
|
||||
from properties_physics_common import point_cache_ui
|
||||
from properties_physics_common import effector_weights_ui
|
||||
from properties_physics_common import basic_force_field_settings_ui
|
||||
from properties_physics_common import basic_force_field_falloff_ui
|
||||
|
||||
def particle_panel_enabled(context, psys):
|
||||
return psys.point_cache.baked==False and psys.edited==False and (not context.particle_system_editable)
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
import bpy
|
||||
|
||||
from buttons_physics_common import point_cache_ui
|
||||
from buttons_physics_common import effector_weights_ui
|
||||
from properties_physics_common import point_cache_ui
|
||||
from properties_physics_common import effector_weights_ui
|
||||
|
||||
def cloth_panel_enabled(md):
|
||||
return md.point_cache.baked==False
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
import bpy
|
||||
|
||||
from buttons_physics_common import basic_force_field_settings_ui
|
||||
from buttons_physics_common import basic_force_field_falloff_ui
|
||||
from properties_physics_common import basic_force_field_settings_ui
|
||||
from properties_physics_common import basic_force_field_falloff_ui
|
||||
|
||||
class PhysicButtonsPanel(bpy.types.Panel):
|
||||
bl_space_type = 'PROPERTIES'
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
import bpy
|
||||
|
||||
from buttons_physics_common import point_cache_ui
|
||||
from buttons_physics_common import effector_weights_ui
|
||||
from properties_physics_common import point_cache_ui
|
||||
from properties_physics_common import effector_weights_ui
|
||||
|
||||
class PhysicButtonsPanel(bpy.types.Panel):
|
||||
bl_space_type = 'PROPERTIES'
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
import bpy
|
||||
|
||||
from buttons_physics_common import point_cache_ui
|
||||
from buttons_physics_common import effector_weights_ui
|
||||
from properties_physics_common import point_cache_ui
|
||||
from properties_physics_common import effector_weights_ui
|
||||
|
||||
def softbody_panel_enabled(md):
|
||||
return md.point_cache.baked==False
|
||||
Reference in New Issue
Block a user