[Bf-extensions-cvs] [f91d5e8] master: Amaranth 1.0.3
Pablo Vazquez
noreply at git.blender.org
Tue Nov 22 16:19:27 CET 2016
Commit: f91d5e88b5b6fe7d2d7e75f95fe0bab2a99169d6
Author: Pablo Vazquez
Date: Tue Nov 22 16:19:23 2016 +0100
Branches: master
https://developer.blender.org/rBACf91d5e88b5b6fe7d2d7e75f95fe0bab2a99169d6
Amaranth 1.0.3
User preference to show/hide the Lighter's Corner panel.
Off by default, slows down the UI on heavy scenes.
===================================================================
M amaranth/__init__.py
M amaranth/prefs.py
M amaranth/scene/debug.py
===================================================================
diff --git a/amaranth/__init__.py b/amaranth/__init__.py
index 4895338..81f6538 100644
--- a/amaranth/__init__.py
+++ b/amaranth/__init__.py
@@ -90,7 +90,7 @@ from amaranth.misc import (
bl_info = {
"name": "Amaranth Toolset",
"author": "Pablo Vazquez, Bassam Kurdali, Sergey Sharybin, Lukas Tönne, Cesar Saez",
- "version": (1, 0, 2),
+ "version": (1, 0, 3),
"blender": (2, 74),
"location": "Everywhere!",
"description": "A collection of tools and settings to improve productivity",
diff --git a/amaranth/prefs.py b/amaranth/prefs.py
index f023463..8162521 100644
--- a/amaranth/prefs.py
+++ b/amaranth/prefs.py
@@ -67,6 +67,12 @@ class AmaranthToolsetPreferences(bpy.types.AddonPreferences):
default=True,
)
+ use_lighters_corner = bpy.props.BoolProperty(
+ name="Lighter's Corner",
+ description="Display the Lighter's Corner panel on Scene properties",
+ default=False,
+ )
+
def draw(self, context):
layout = self.layout
@@ -90,6 +96,7 @@ class AmaranthToolsetPreferences(bpy.types.AddonPreferences):
sub.prop(self, "use_scene_stats")
sub.prop(self, "use_layers_for_render")
sub.prop(self, "use_framerate")
+ sub.prop(self, "use_lighters_corner")
sub.separator()
@@ -117,6 +124,8 @@ class AmaranthToolsetPreferences(bpy.types.AddonPreferences):
text="Save the set of layers that should be activated for a final render")
sub.label(
text="Jump the amount of frames forward/backward that you've set as your framerate")
+ sub.label(
+ text="Display the Lighter's Corner panel on Scene properties")
sub.separator()
sub.label(text="") # Nodes
diff --git a/amaranth/scene/debug.py b/amaranth/scene/debug.py
index 8a8e08a..801d849 100755
--- a/amaranth/scene/debug.py
+++ b/amaranth/scene/debug.py
@@ -539,7 +539,7 @@ class AMTH_SCENE_OT_list_users_for_x_type(bpy.types.Operator):
@classmethod
def poll(cls, context):
return bpy.context.scene.amth_datablock_types
-
+
def execute(self,context):
datablock_type = bpy.context.scene.amth_datablock_types
@@ -1190,13 +1190,9 @@ class AMTH_LightersCorner(bpy.types.Panel):
@classmethod
def poll(cls, context):
- any_lamps = False
- for ob in bpy.data.objects:
- if ob.type == "LAMP" or utils.cycles_is_emission(context, ob):
- any_lamps = True
- else:
- pass
- return any_lamps
+ preferences = context.user_preferences.addons["amaranth"].preferences
+
+ return preferences.use_lighters_corner
def draw_header(self, context):
layout = self.layout
More information about the Bf-extensions-cvs
mailing list