Merge branch 'master' into 28
This commit is contained in:
@@ -31,7 +31,8 @@ endif()
|
|||||||
|
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||||
set(MSVC_CLANG On)
|
set(MSVC_CLANG On)
|
||||||
set(MSVC_REDIST_DIR $ENV{VCToolsRedistDir})
|
set(VC_TOOLS_DIR $ENV{VCToolsRedistDir} CACHE STRING "Location of the msvc redistributables")
|
||||||
|
set(MSVC_REDIST_DIR ${VC_TOOLS_DIR})
|
||||||
if (DEFINED MSVC_REDIST_DIR)
|
if (DEFINED MSVC_REDIST_DIR)
|
||||||
file(TO_CMAKE_PATH ${MSVC_REDIST_DIR} MSVC_REDIST_DIR)
|
file(TO_CMAKE_PATH ${MSVC_REDIST_DIR} MSVC_REDIST_DIR)
|
||||||
else()
|
else()
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -G "Visual Studio %BUILD_VS_VER% %BUILD_VS_YEAR%%WINDOWS_ARCH%" %TESTS_CMAKE_ARGS%
|
|
||||||
|
|
||||||
if "%BUILD_ARCH%"=="x64" (
|
if "%BUILD_ARCH%"=="x64" (
|
||||||
set MSBUILD_PLATFORM=x64
|
set MSBUILD_PLATFORM=x64
|
||||||
) else if "%BUILD_ARCH%"=="x86" (
|
) else if "%BUILD_ARCH%"=="x86" (
|
||||||
@@ -11,9 +9,9 @@ if "%BUILD_ARCH%"=="x64" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
if "%WITH_CLANG%"=="1" (
|
if "%WITH_CLANG%"=="1" (
|
||||||
set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -T"LLVM-vs2017"
|
set CLANG_CMAKE_ARGS=-T"LLVM-vs2017"
|
||||||
if "%WITH_ASAN%"=="1" (
|
if "%WITH_ASAN%"=="1" (
|
||||||
set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -DWITH_COMPILER_ASAN=On
|
set ASAN_CMAKE_ARGS=-DWITH_COMPILER_ASAN=On
|
||||||
)
|
)
|
||||||
) else (
|
) else (
|
||||||
if "%WITH_ASAN%"=="1" (
|
if "%WITH_ASAN%"=="1" (
|
||||||
@@ -21,6 +19,7 @@ if "%WITH_CLANG%"=="1" (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -G "Visual Studio %BUILD_VS_VER% %BUILD_VS_YEAR%%WINDOWS_ARCH%" %TESTS_CMAKE_ARGS% %CLANG_CMAKE_ARGS% %ASAN_CMAKE_ARGS%
|
||||||
|
|
||||||
if NOT EXIST %BUILD_DIR%\nul (
|
if NOT EXIST %BUILD_DIR%\nul (
|
||||||
mkdir %BUILD_DIR%
|
mkdir %BUILD_DIR%
|
||||||
|
|||||||
@@ -23,3 +23,5 @@ set SHOW_HELP=
|
|||||||
set BUILD_WITH_NINJA=
|
set BUILD_WITH_NINJA=
|
||||||
set WITH_CLANG=
|
set WITH_CLANG=
|
||||||
set WITH_ASAN=
|
set WITH_ASAN=
|
||||||
|
set CLANG_CMAKE_ARGS=
|
||||||
|
set ASAN_CMAKE_ARGS=
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ _modules = [
|
|||||||
"space_userpref",
|
"space_userpref",
|
||||||
"space_view3d",
|
"space_view3d",
|
||||||
"space_view3d_toolbar",
|
"space_view3d_toolbar",
|
||||||
]
|
]
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
@@ -167,6 +167,8 @@ def unregister():
|
|||||||
|
|
||||||
# Define a default UIList, when a list does not need any custom drawing...
|
# Define a default UIList, when a list does not need any custom drawing...
|
||||||
# Keep in sync with its #defined name in UI_interface.h
|
# Keep in sync with its #defined name in UI_interface.h
|
||||||
|
|
||||||
|
|
||||||
class UI_UL_list(bpy.types.UIList):
|
class UI_UL_list(bpy.types.UIList):
|
||||||
# These are common filtering or ordering operations (same as the default C ones!).
|
# These are common filtering or ordering operations (same as the default C ones!).
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@@ -941,6 +941,7 @@ class BONE_PT_constraints(ConstraintButtonsPanel, Panel):
|
|||||||
for con in context.pose_bone.constraints:
|
for con in context.pose_bone.constraints:
|
||||||
self.draw_constraint(context, con)
|
self.draw_constraint(context, con)
|
||||||
|
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
OBJECT_PT_constraints,
|
OBJECT_PT_constraints,
|
||||||
BONE_PT_constraints,
|
BONE_PT_constraints,
|
||||||
|
|||||||
@@ -180,6 +180,7 @@ class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel):
|
|||||||
sub.active = curve.taper_object is not None
|
sub.active = curve.taper_object is not None
|
||||||
sub.prop(curve, "use_map_taper")
|
sub.prop(curve, "use_map_taper")
|
||||||
|
|
||||||
|
|
||||||
class DATA_PT_geometry_curve_bevel(CurveButtonsPanelCurve, Panel):
|
class DATA_PT_geometry_curve_bevel(CurveButtonsPanelCurve, Panel):
|
||||||
bl_label = "Bevel"
|
bl_label = "Bevel"
|
||||||
bl_parent_id = "DATA_PT_geometry_curve"
|
bl_parent_id = "DATA_PT_geometry_curve"
|
||||||
@@ -348,6 +349,7 @@ class DATA_PT_font(CurveButtonsPanelText, Panel):
|
|||||||
row.prop(char, "use_underline", toggle=True)
|
row.prop(char, "use_underline", toggle=True)
|
||||||
row.prop(char, "use_small_caps", toggle=True)
|
row.prop(char, "use_small_caps", toggle=True)
|
||||||
|
|
||||||
|
|
||||||
class DATA_PT_font_transform(CurveButtonsPanelText, Panel):
|
class DATA_PT_font_transform(CurveButtonsPanelText, Panel):
|
||||||
bl_label = "Transform"
|
bl_label = "Transform"
|
||||||
bl_parent_id = "DATA_PT_font"
|
bl_parent_id = "DATA_PT_font"
|
||||||
@@ -404,7 +406,6 @@ class DATA_PT_paragraph_alignment(CurveButtonsPanelText, Panel):
|
|||||||
layout.row().prop(text, "align_y", expand=True)
|
layout.row().prop(text, "align_y", expand=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class DATA_PT_paragraph_spacing(CurveButtonsPanelText, Panel):
|
class DATA_PT_paragraph_spacing(CurveButtonsPanelText, Panel):
|
||||||
bl_parent_id = "DATA_PT_paragraph"
|
bl_parent_id = "DATA_PT_paragraph"
|
||||||
bl_label = "Spacing"
|
bl_label = "Spacing"
|
||||||
|
|||||||
@@ -182,7 +182,6 @@ class DATA_PT_EEVEE_shadow(DataButtonsPanel, Panel):
|
|||||||
col.prop(lamp, "shadow_buffer_bleed_bias", text="Bleed Bias")
|
col.prop(lamp, "shadow_buffer_bleed_bias", text="Bleed Bias")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class DATA_PT_EEVEE_shadow_cascaded_shadow_map(DataButtonsPanel, Panel):
|
class DATA_PT_EEVEE_shadow_cascaded_shadow_map(DataButtonsPanel, Panel):
|
||||||
bl_label = "Cascaded Shadow Map"
|
bl_label = "Cascaded Shadow Map"
|
||||||
bl_parent_id = "DATA_PT_EEVEE_shadow"
|
bl_parent_id = "DATA_PT_EEVEE_shadow"
|
||||||
|
|||||||
@@ -629,7 +629,7 @@ class VIEWLAYER_PT_freestyle_linestyle(ViewLayerFreestyleEditorButtonsPanel, Pan
|
|||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.prop(linestyle, "panel", expand=True)
|
row.prop(linestyle, "panel", expand=True)
|
||||||
if linestyle.panel == 'STROKES':
|
if linestyle.panel == 'STROKES':
|
||||||
## Chaining
|
# Chaining
|
||||||
layout.prop(linestyle, "use_chaining", text="Chaining:")
|
layout.prop(linestyle, "use_chaining", text="Chaining:")
|
||||||
split = layout.split(align=True)
|
split = layout.split(align=True)
|
||||||
split.active = linestyle.use_chaining
|
split.active = linestyle.use_chaining
|
||||||
@@ -643,7 +643,7 @@ class VIEWLAYER_PT_freestyle_linestyle(ViewLayerFreestyleEditorButtonsPanel, Pan
|
|||||||
col = split.column()
|
col = split.column()
|
||||||
col.prop(linestyle, "use_same_object")
|
col.prop(linestyle, "use_same_object")
|
||||||
|
|
||||||
## Splitting
|
# Splitting
|
||||||
layout.label(text="Splitting:")
|
layout.label(text="Splitting:")
|
||||||
split = layout.split(align=True)
|
split = layout.split(align=True)
|
||||||
# First column
|
# First column
|
||||||
@@ -679,7 +679,7 @@ class VIEWLAYER_PT_freestyle_linestyle(ViewLayerFreestyleEditorButtonsPanel, Pan
|
|||||||
sub.prop(linestyle, "split_dash3", text="D3")
|
sub.prop(linestyle, "split_dash3", text="D3")
|
||||||
sub.prop(linestyle, "split_gap3", text="G3")
|
sub.prop(linestyle, "split_gap3", text="G3")
|
||||||
|
|
||||||
## Sorting
|
# Sorting
|
||||||
layout.prop(linestyle, "use_sorting", text="Sorting:")
|
layout.prop(linestyle, "use_sorting", text="Sorting:")
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
col.active = linestyle.use_sorting
|
col.active = linestyle.use_sorting
|
||||||
@@ -693,7 +693,7 @@ class VIEWLAYER_PT_freestyle_linestyle(ViewLayerFreestyleEditorButtonsPanel, Pan
|
|||||||
row = col.row(align=True)
|
row = col.row(align=True)
|
||||||
row.prop(linestyle, "sort_order", expand=True)
|
row.prop(linestyle, "sort_order", expand=True)
|
||||||
|
|
||||||
## Selection
|
# Selection
|
||||||
layout.label(text="Selection:")
|
layout.label(text="Selection:")
|
||||||
split = layout.split(align=True)
|
split = layout.split(align=True)
|
||||||
# First column
|
# First column
|
||||||
@@ -716,12 +716,12 @@ class VIEWLAYER_PT_freestyle_linestyle(ViewLayerFreestyleEditorButtonsPanel, Pan
|
|||||||
sub.active = linestyle.use_chain_count
|
sub.active = linestyle.use_chain_count
|
||||||
sub.prop(linestyle, "chain_count")
|
sub.prop(linestyle, "chain_count")
|
||||||
|
|
||||||
## Caps
|
# Caps
|
||||||
layout.label(text="Caps:")
|
layout.label(text="Caps:")
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.prop(linestyle, "caps", expand=True)
|
row.prop(linestyle, "caps", expand=True)
|
||||||
|
|
||||||
## Dashed lines
|
# Dashed lines
|
||||||
layout.prop(linestyle, "use_dashed_line", text="Dashed Line:")
|
layout.prop(linestyle, "use_dashed_line", text="Dashed Line:")
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.active = linestyle.use_dashed_line
|
row.active = linestyle.use_dashed_line
|
||||||
@@ -788,7 +788,8 @@ class VIEWLAYER_PT_freestyle_linestyle(ViewLayerFreestyleEditorButtonsPanel, Pan
|
|||||||
props = row.operator(
|
props = row.operator(
|
||||||
"wm.properties_context_change",
|
"wm.properties_context_change",
|
||||||
text="Go to Linestyle Textures Properties",
|
text="Go to Linestyle Textures Properties",
|
||||||
icon='TEXTURE')
|
icon='TEXTURE',
|
||||||
|
)
|
||||||
props.context = 'TEXTURE'
|
props.context = 'TEXTURE'
|
||||||
|
|
||||||
elif linestyle.panel == 'MISC':
|
elif linestyle.panel == 'MISC':
|
||||||
|
|||||||
@@ -242,7 +242,6 @@ class GreasePencilStrokeEditPanel:
|
|||||||
if is_3d_view:
|
if is_3d_view:
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
col = layout.column(align=True)
|
col = layout.column(align=True)
|
||||||
col.operator("gpencil.stroke_subdivide", text="Subdivide")
|
col.operator("gpencil.stroke_subdivide", text="Subdivide")
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ class MASK_UL_layers(UIList):
|
|||||||
|
|
||||||
class MASK_PT_mask:
|
class MASK_PT_mask:
|
||||||
# subclasses must define...
|
# subclasses must define...
|
||||||
#~ bl_space_type = 'CLIP_EDITOR'
|
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||||
#~ bl_region_type = 'UI'
|
# ~ bl_region_type = 'UI'
|
||||||
bl_label = "Mask Settings"
|
bl_label = "Mask Settings"
|
||||||
bl_options = {'DEFAULT_CLOSED'}
|
bl_options = {'DEFAULT_CLOSED'}
|
||||||
|
|
||||||
@@ -66,8 +66,8 @@ class MASK_PT_mask:
|
|||||||
|
|
||||||
class MASK_PT_layers:
|
class MASK_PT_layers:
|
||||||
# subclasses must define...
|
# subclasses must define...
|
||||||
#~ bl_space_type = 'CLIP_EDITOR'
|
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||||
#~ bl_region_type = 'UI'
|
# ~ bl_region_type = 'UI'
|
||||||
bl_label = "Mask Layers"
|
bl_label = "Mask Layers"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -114,8 +114,8 @@ class MASK_PT_layers:
|
|||||||
|
|
||||||
class MASK_PT_spline:
|
class MASK_PT_spline:
|
||||||
# subclasses must define...
|
# subclasses must define...
|
||||||
#~ bl_space_type = 'CLIP_EDITOR'
|
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||||
#~ bl_region_type = 'UI'
|
# ~ bl_region_type = 'UI'
|
||||||
bl_label = "Active Spline"
|
bl_label = "Active Spline"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -148,8 +148,8 @@ class MASK_PT_spline:
|
|||||||
|
|
||||||
class MASK_PT_point:
|
class MASK_PT_point:
|
||||||
# subclasses must define...
|
# subclasses must define...
|
||||||
#~ bl_space_type = 'CLIP_EDITOR'
|
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||||
#~ bl_region_type = 'UI'
|
# ~ bl_region_type = 'UI'
|
||||||
bl_label = "Active Point"
|
bl_label = "Active Point"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -203,8 +203,8 @@ class MASK_PT_point:
|
|||||||
|
|
||||||
class MASK_PT_display:
|
class MASK_PT_display:
|
||||||
# subclasses must define...
|
# subclasses must define...
|
||||||
#~ bl_space_type = 'CLIP_EDITOR'
|
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||||
#~ bl_region_type = 'UI'
|
# ~ bl_region_type = 'UI'
|
||||||
bl_label = "Mask Display"
|
bl_label = "Mask Display"
|
||||||
bl_options = {'DEFAULT_CLOSED'}
|
bl_options = {'DEFAULT_CLOSED'}
|
||||||
|
|
||||||
@@ -229,8 +229,8 @@ class MASK_PT_display:
|
|||||||
|
|
||||||
class MASK_PT_transforms:
|
class MASK_PT_transforms:
|
||||||
# subclasses must define...
|
# subclasses must define...
|
||||||
#~ bl_space_type = 'CLIP_EDITOR'
|
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||||
#~ bl_region_type = 'TOOLS'
|
# ~ bl_region_type = 'TOOLS'
|
||||||
bl_label = "Transforms"
|
bl_label = "Transforms"
|
||||||
bl_category = "Mask"
|
bl_category = "Mask"
|
||||||
bl_options = {'DEFAULT_CLOSED'}
|
bl_options = {'DEFAULT_CLOSED'}
|
||||||
@@ -253,8 +253,8 @@ class MASK_PT_transforms:
|
|||||||
|
|
||||||
class MASK_PT_tools:
|
class MASK_PT_tools:
|
||||||
# subclasses must define...
|
# subclasses must define...
|
||||||
#~ bl_space_type = 'CLIP_EDITOR'
|
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||||
#~ bl_region_type = 'TOOLS'
|
# ~ bl_region_type = 'TOOLS'
|
||||||
bl_label = "Mask Tools"
|
bl_label = "Mask Tools"
|
||||||
bl_category = "Mask"
|
bl_category = "Mask"
|
||||||
|
|
||||||
@@ -291,8 +291,8 @@ class MASK_PT_tools:
|
|||||||
|
|
||||||
class MASK_PT_add:
|
class MASK_PT_add:
|
||||||
# subclasses must define...
|
# subclasses must define...
|
||||||
#~ bl_space_type = 'CLIP_EDITOR'
|
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||||
#~ bl_region_type = 'TOOLS'
|
# ~ bl_region_type = 'TOOLS'
|
||||||
bl_label = "Add"
|
bl_label = "Add"
|
||||||
bl_category = "Mask"
|
bl_category = "Mask"
|
||||||
|
|
||||||
|
|||||||
@@ -404,7 +404,7 @@ class PARTICLE_PT_hair_dynamics_structure(ParticleButtonsPanel, Panel):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.particle_system.cloth != None
|
return context.particle_system.cloth is not None
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@@ -436,7 +436,7 @@ class PARTICLE_PT_hair_dynamics_volume(ParticleButtonsPanel, Panel):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.particle_system.cloth != None
|
return context.particle_system.cloth is not None
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@@ -591,6 +591,7 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel, Panel):
|
|||||||
if part.type != 'HAIR':
|
if part.type != 'HAIR':
|
||||||
col.prop(part, "use_dynamic_rotation")
|
col.prop(part, "use_dynamic_rotation")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_rotation_angular_velocity(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_rotation_angular_velocity(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Angular Velocity"
|
bl_label = "Angular Velocity"
|
||||||
bl_parent_id = "PARTICLE_PT_rotation"
|
bl_parent_id = "PARTICLE_PT_rotation"
|
||||||
@@ -812,6 +813,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
|
|||||||
sub.prop(key, "object", text="")
|
sub.prop(key, "object", text="")
|
||||||
sub.prop(key, "system", text="System")
|
sub.prop(key, "system", text="System")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_physics_deflection(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_physics_deflection(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Deflection"
|
bl_label = "Deflection"
|
||||||
bl_parent_id = "PARTICLE_PT_physics"
|
bl_parent_id = "PARTICLE_PT_physics"
|
||||||
@@ -924,7 +926,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel):
|
|||||||
|
|
||||||
# Currently boids can only use the first state so these are commented out for now.
|
# Currently boids can only use the first state so these are commented out for now.
|
||||||
#row = layout.row()
|
#row = layout.row()
|
||||||
#row.template_list("UI_UL_list", "particle_boids", boids, "states",
|
# row.template_list("UI_UL_list", "particle_boids", boids, "states",
|
||||||
# boids, "active_boid_state_index", compact="True")
|
# boids, "active_boid_state_index", compact="True")
|
||||||
#col = row.row()
|
#col = row.row()
|
||||||
#sub = col.row(align=True)
|
#sub = col.row(align=True)
|
||||||
@@ -1039,6 +1041,7 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
|
|||||||
col.prop(part, "material_slot", text="Material")
|
col.prop(part, "material_slot", text="Material")
|
||||||
col.prop(psys, "parent", text="Coordinate System")
|
col.prop(psys, "parent", text="Coordinate System")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_extra(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_extra(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Extra"
|
bl_label = "Extra"
|
||||||
bl_parent_id = "PARTICLE_PT_render"
|
bl_parent_id = "PARTICLE_PT_render"
|
||||||
@@ -1058,7 +1061,7 @@ class PARTICLE_PT_render_extra(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
col.prop(part, "use_parent_particles", text="Parent Particles")
|
col.prop(part, "use_parent_particles", text="Parent Particles")
|
||||||
@@ -1066,7 +1069,6 @@ class PARTICLE_PT_render_extra(ParticleButtonsPanel, Panel):
|
|||||||
col.prop(part, "use_dead", text="Dead")
|
col.prop(part, "use_dead", text="Dead")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_line(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_line(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Line"
|
bl_label = "Line"
|
||||||
bl_parent_id = "PARTICLE_PT_render"
|
bl_parent_id = "PARTICLE_PT_render"
|
||||||
@@ -1086,7 +1088,7 @@ class PARTICLE_PT_render_line(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
col.separator()
|
col.separator()
|
||||||
sub = col.column(align=True)
|
sub = col.column(align=True)
|
||||||
@@ -1094,6 +1096,7 @@ class PARTICLE_PT_render_line(ParticleButtonsPanel, Panel):
|
|||||||
sub.prop(part, "line_length_head", text="Head")
|
sub.prop(part, "line_length_head", text="Head")
|
||||||
col.prop(part, "use_velocity_length", text="Velocity Length")
|
col.prop(part, "use_velocity_length", text="Velocity Length")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_path(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_path(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Path"
|
bl_label = "Path"
|
||||||
bl_parent_id = "PARTICLE_PT_render"
|
bl_parent_id = "PARTICLE_PT_render"
|
||||||
@@ -1113,7 +1116,7 @@ class PARTICLE_PT_render_path(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
col.prop(part, "use_strand_primitive")
|
col.prop(part, "use_strand_primitive")
|
||||||
sub = col.column()
|
sub = col.column()
|
||||||
@@ -1148,7 +1151,7 @@ class PARTICLE_PT_render_path_timing(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
col.prop(part, "use_absolute_path_time")
|
col.prop(part, "use_absolute_path_time")
|
||||||
|
|
||||||
@@ -1160,6 +1163,7 @@ class PARTICLE_PT_render_path_timing(ParticleButtonsPanel, Panel):
|
|||||||
col.prop(part, "path_end", text="End", slider=not part.use_absolute_path_time)
|
col.prop(part, "path_end", text="End", slider=not part.use_absolute_path_time)
|
||||||
col.prop(part, "length_random", text="Random", slider=True)
|
col.prop(part, "length_random", text="Random", slider=True)
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_object(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_object(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Object"
|
bl_label = "Object"
|
||||||
bl_parent_id = "PARTICLE_PT_render"
|
bl_parent_id = "PARTICLE_PT_render"
|
||||||
@@ -1179,7 +1183,7 @@ class PARTICLE_PT_render_object(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
col.prop(part, "dupli_object", text="Instance Object")
|
col.prop(part, "dupli_object", text="Instance Object")
|
||||||
sub = col.column()
|
sub = col.column()
|
||||||
@@ -1207,7 +1211,7 @@ class PARTICLE_PT_render_collection(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
col.prop(part, "dupli_group")
|
col.prop(part, "dupli_group")
|
||||||
|
|
||||||
@@ -1219,6 +1223,7 @@ class PARTICLE_PT_render_collection(ParticleButtonsPanel, Panel):
|
|||||||
sub.prop(part, "use_rotation_dupli", text="Object Rotation")
|
sub.prop(part, "use_rotation_dupli", text="Object Rotation")
|
||||||
sub.prop(part, "use_scale_dupli", text="Object Scale")
|
sub.prop(part, "use_scale_dupli", text="Object Scale")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_collection_use_count(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_collection_use_count(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Use Count"
|
bl_label = "Use Count"
|
||||||
bl_parent_id = "PARTICLE_PT_render_collection"
|
bl_parent_id = "PARTICLE_PT_render_collection"
|
||||||
@@ -1246,7 +1251,7 @@ class PARTICLE_PT_render_collection_use_count(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
layout.active = part.use_group_count and not part.use_whole_group
|
layout.active = part.use_group_count and not part.use_whole_group
|
||||||
|
|
||||||
@@ -1267,6 +1272,7 @@ class PARTICLE_PT_render_collection_use_count(ParticleButtonsPanel, Panel):
|
|||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.prop(weight, "count")
|
row.prop(weight, "count")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_billboards_alignment(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_billboards_alignment(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Billboard Alignment"
|
bl_label = "Billboard Alignment"
|
||||||
bl_parent_id = "PARTICLE_PT_render"
|
bl_parent_id = "PARTICLE_PT_render"
|
||||||
@@ -1286,12 +1292,13 @@ class PARTICLE_PT_render_billboards_alignment(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
col.prop(part, "billboard_align", text="Align To")
|
col.prop(part, "billboard_align", text="Align To")
|
||||||
col.prop(part, "lock_billboard", text="Lock Axis")
|
col.prop(part, "lock_billboard", text="Lock Axis")
|
||||||
col.prop(part, "billboard_object")
|
col.prop(part, "billboard_object")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_billboards_tilt(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_billboards_tilt(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Billboard Tilt"
|
bl_label = "Billboard Tilt"
|
||||||
bl_parent_id = "PARTICLE_PT_render"
|
bl_parent_id = "PARTICLE_PT_render"
|
||||||
@@ -1311,7 +1318,7 @@ class PARTICLE_PT_render_billboards_tilt(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
sub = col.column(align=True)
|
sub = col.column(align=True)
|
||||||
sub.prop(part, "billboard_tilt", text="Angle", slider=True)
|
sub.prop(part, "billboard_tilt", text="Angle", slider=True)
|
||||||
@@ -1325,6 +1332,7 @@ class PARTICLE_PT_render_billboards_tilt(ParticleButtonsPanel, Panel):
|
|||||||
col.prop(part, "billboard_velocity_head", text="Velocity ScaleHead")
|
col.prop(part, "billboard_velocity_head", text="Velocity ScaleHead")
|
||||||
col.prop(part, "billboard_velocity_tail", text="Tail")
|
col.prop(part, "billboard_velocity_tail", text="Tail")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_billboards_uv(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_billboards_uv(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Billboard UVs"
|
bl_label = "Billboard UVs"
|
||||||
bl_parent_id = "PARTICLE_PT_render"
|
bl_parent_id = "PARTICLE_PT_render"
|
||||||
@@ -1344,7 +1352,7 @@ class PARTICLE_PT_render_billboards_uv(ParticleButtonsPanel, Panel):
|
|||||||
ob = context.object
|
ob = context.object
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
if psys:
|
if psys:
|
||||||
col.prop_search(psys, "billboard_normal_uv", ob.data, "uv_layers")
|
col.prop_search(psys, "billboard_normal_uv", ob.data, "uv_layers")
|
||||||
@@ -1361,7 +1369,6 @@ class PARTICLE_PT_render_billboards_uv(ParticleButtonsPanel, Panel):
|
|||||||
sub.prop(part, "billboard_offset_split")
|
sub.prop(part, "billboard_offset_split")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_render_trails(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_render_trails(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Trails"
|
bl_label = "Trails"
|
||||||
bl_parent_id = "PARTICLE_PT_render"
|
bl_parent_id = "PARTICLE_PT_render"
|
||||||
@@ -1380,7 +1387,7 @@ class PARTICLE_PT_render_trails(ParticleButtonsPanel, Panel):
|
|||||||
psys = context.particle_system
|
psys = context.particle_system
|
||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
col=layout.column()
|
col = layout.column()
|
||||||
|
|
||||||
col.prop(part, "trail_count")
|
col.prop(part, "trail_count")
|
||||||
|
|
||||||
@@ -1532,6 +1539,7 @@ class PARTICLE_PT_children_parting(ParticleButtonsPanel, Panel):
|
|||||||
col.prop(part, "child_parting_min", text="Min")
|
col.prop(part, "child_parting_min", text="Min")
|
||||||
col.prop(part, "child_parting_max", text="Max")
|
col.prop(part, "child_parting_max", text="Max")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_children_clumping(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_children_clumping(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Clumping"
|
bl_label = "Clumping"
|
||||||
bl_parent_id = "PARTICLE_PT_children"
|
bl_parent_id = "PARTICLE_PT_children"
|
||||||
@@ -1573,6 +1581,7 @@ class PARTICLE_PT_children_clumping(ParticleButtonsPanel, Panel):
|
|||||||
if part.use_twist_curve:
|
if part.use_twist_curve:
|
||||||
sub.template_curve_mapping(part, "twist_curve")
|
sub.template_curve_mapping(part, "twist_curve")
|
||||||
|
|
||||||
|
|
||||||
class PARTICLE_PT_children_roughness(ParticleButtonsPanel, Panel):
|
class PARTICLE_PT_children_roughness(ParticleButtonsPanel, Panel):
|
||||||
bl_label = "Roughness"
|
bl_label = "Roughness"
|
||||||
bl_parent_id = "PARTICLE_PT_children"
|
bl_parent_id = "PARTICLE_PT_children"
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ class PHYSICS_PT_cloth_field_weights(PhysicButtonsPanel, Panel):
|
|||||||
cloth = context.cloth.settings
|
cloth = context.cloth.settings
|
||||||
effector_weights_ui(self, context, cloth.effector_weights, 'CLOTH')
|
effector_weights_ui(self, context, cloth.effector_weights, 'CLOTH')
|
||||||
|
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
CLOTH_MT_presets,
|
CLOTH_MT_presets,
|
||||||
PHYSICS_PT_cloth,
|
PHYSICS_PT_cloth,
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ class PHYSICS_PT_rigid_body_dynamics(PHYSICS_PT_rigidbody_panel, Panel):
|
|||||||
rbo = ob.rigid_body
|
rbo = ob.rigid_body
|
||||||
|
|
||||||
#col = layout.column(align=1)
|
#col = layout.column(align=1)
|
||||||
#col.label(text="Activation:")
|
# col.label(text="Activation:")
|
||||||
# XXX: settings such as activate on collison/etc.
|
# XXX: settings such as activate on collison/etc.
|
||||||
|
|
||||||
split = layout.split()
|
split = layout.split()
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel):
|
|||||||
sub.active = rd.use_stamp_note
|
sub.active = rd.use_stamp_note
|
||||||
sub.prop(rd, "stamp_note_text", text="")
|
sub.prop(rd, "stamp_note_text", text="")
|
||||||
|
|
||||||
|
|
||||||
class RENDER_PT_stamp_burn(RenderButtonsPanel, Panel):
|
class RENDER_PT_stamp_burn(RenderButtonsPanel, Panel):
|
||||||
bl_label = "Burn Into Image"
|
bl_label = "Burn Into Image"
|
||||||
bl_parent_id = "RENDER_PT_stamp"
|
bl_parent_id = "RENDER_PT_stamp"
|
||||||
|
|||||||
@@ -296,9 +296,7 @@ class SCENE_PT_color_management_curves(SceneButtonsPanel, Panel):
|
|||||||
layout.use_property_split = False
|
layout.use_property_split = False
|
||||||
layout.enabled = view.use_curve_mapping
|
layout.enabled = view.use_curve_mapping
|
||||||
|
|
||||||
layout.template_curve_mapping(view, "curve_mapping", levels = True)
|
layout.template_curve_mapping(view, "curve_mapping", levels=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class SCENE_PT_audio(SceneButtonsPanel, Panel):
|
class SCENE_PT_audio(SceneButtonsPanel, Panel):
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ class TEXTURE_UL_texslots(UIList):
|
|||||||
layout.alignment = 'CENTER'
|
layout.alignment = 'CENTER'
|
||||||
layout.label(text="", icon_value=icon)
|
layout.label(text="", icon_value=icon)
|
||||||
|
|
||||||
|
|
||||||
def context_tex_datablock(context):
|
def context_tex_datablock(context):
|
||||||
idblock = context.brush
|
idblock = context.brush
|
||||||
if idblock:
|
if idblock:
|
||||||
@@ -106,6 +107,7 @@ class TEXTURE_PT_preview(TextureButtonsPanel, Panel):
|
|||||||
if isinstance(idblock, Brush):
|
if isinstance(idblock, Brush):
|
||||||
layout.prop(tex, "use_preview_alpha")
|
layout.prop(tex, "use_preview_alpha")
|
||||||
|
|
||||||
|
|
||||||
class TEXTURE_PT_context(TextureButtonsPanel, Panel):
|
class TEXTURE_PT_context(TextureButtonsPanel, Panel):
|
||||||
bl_label = ""
|
bl_label = ""
|
||||||
bl_context = "texture"
|
bl_context = "texture"
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class VIEWLAYER_PT_layer(ViewLayerButtonsPanel, Panel):
|
|||||||
rd = scene.render
|
rd = scene.render
|
||||||
layer = bpy.context.view_layer
|
layer = bpy.context.view_layer
|
||||||
|
|
||||||
layout.prop(layer, "use", text="Use for Rendering");
|
layout.prop(layer, "use", text="Use for Rendering")
|
||||||
layout.prop(rd, "use_single_layer", text="Render Single Layer")
|
layout.prop(rd, "use_single_layer", text="Render Single Layer")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1018,9 +1018,11 @@ class CLIP_PT_proxy(CLIP_PT_clip_view_panel, Panel):
|
|||||||
if clip.use_proxy_custom_directory:
|
if clip.use_proxy_custom_directory:
|
||||||
col.prop(clip.proxy, "directory")
|
col.prop(clip.proxy, "directory")
|
||||||
|
|
||||||
col.operator("clip.rebuild_proxy",
|
col.operator(
|
||||||
|
"clip.rebuild_proxy",
|
||||||
text="Build Proxy / Timecode" if clip.source == 'MOVIE'
|
text="Build Proxy / Timecode" if clip.source == 'MOVIE'
|
||||||
else "Build Proxy")
|
else "Build Proxy"
|
||||||
|
)
|
||||||
|
|
||||||
if clip.source == 'MOVIE':
|
if clip.source == 'MOVIE':
|
||||||
col2 = col.column()
|
col2 = col.column()
|
||||||
@@ -1189,6 +1191,7 @@ class CLIP_PT_tools_grease_pencil_brush(GreasePencilBrushPanel, Panel):
|
|||||||
class CLIP_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
class CLIP_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
||||||
bl_space_type = 'CLIP_EDITOR'
|
bl_space_type = 'CLIP_EDITOR'
|
||||||
|
|
||||||
|
|
||||||
class CLIP_MT_view(Menu):
|
class CLIP_MT_view(Menu):
|
||||||
bl_label = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
|
|||||||
@@ -425,11 +425,11 @@ class DOPESHEET_MT_gpencil_channel(Menu):
|
|||||||
layout.operator("anim.channels_editable_toggle")
|
layout.operator("anim.channels_editable_toggle")
|
||||||
|
|
||||||
# XXX: to be enabled when these are ready for use!
|
# XXX: to be enabled when these are ready for use!
|
||||||
#layout.separator()
|
# layout.separator()
|
||||||
#layout.operator("anim.channels_expand")
|
# layout.operator("anim.channels_expand")
|
||||||
#layout.operator("anim.channels_collapse")
|
# layout.operator("anim.channels_collapse")
|
||||||
|
|
||||||
#layout.separator()
|
# layout.separator()
|
||||||
#layout.operator_menu_enum("anim.channels_move", "direction", text="Move...")
|
#layout.operator_menu_enum("anim.channels_move", "direction", text="Move...")
|
||||||
|
|
||||||
|
|
||||||
@@ -450,9 +450,9 @@ class DOPESHEET_MT_gpencil_frame(Menu):
|
|||||||
layout.separator()
|
layout.separator()
|
||||||
layout.operator("action.keyframe_type")
|
layout.operator("action.keyframe_type")
|
||||||
|
|
||||||
#layout.separator()
|
# layout.separator()
|
||||||
#layout.operator("action.copy")
|
# layout.operator("action.copy")
|
||||||
#layout.operator("action.paste")
|
# layout.operator("action.paste")
|
||||||
|
|
||||||
|
|
||||||
class DOPESHEET_MT_delete(Menu):
|
class DOPESHEET_MT_delete(Menu):
|
||||||
@@ -496,18 +496,18 @@ class DOPESHEET_MT_specials(Menu):
|
|||||||
layout.operator_menu_enum("action.mirror", "type", text="Mirror")
|
layout.operator_menu_enum("action.mirror", "type", text="Mirror")
|
||||||
layout.operator_menu_enum("action.snap", "type", text="Snap")
|
layout.operator_menu_enum("action.snap", "type", text="Snap")
|
||||||
|
|
||||||
|
|
||||||
class DOPESHEET_MT_channel_specials(Menu):
|
class DOPESHEET_MT_channel_specials(Menu):
|
||||||
bl_label = "Dope Sheet Channel Context Menu"
|
bl_label = "Dope Sheet Channel Context Menu"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
|
layout.operator("anim.channels_setting_enable", text="Mute Channels").type = 'MUTE'
|
||||||
layout.operator("anim.channels_setting_enable", text="Mute Channels").type='MUTE'
|
layout.operator("anim.channels_setting_disable", text="Unmute Channels").type = 'MUTE'
|
||||||
layout.operator("anim.channels_setting_disable", text="Unmute Channels").type='MUTE'
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
layout.operator("anim.channels_setting_enable", text="Protect Channels").type='PROTECT'
|
layout.operator("anim.channels_setting_enable", text="Protect Channels").type = 'PROTECT'
|
||||||
layout.operator("anim.channels_setting_disable", text="Unprotect Channels").type='PROTECT'
|
layout.operator("anim.channels_setting_disable", text="Unprotect Channels").type = 'PROTECT'
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
layout.operator("anim.channels_group")
|
layout.operator("anim.channels_group")
|
||||||
|
|||||||
@@ -336,11 +336,11 @@ class GRAPH_MT_channel_specials(Menu):
|
|||||||
st = context.space_data
|
st = context.space_data
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
layout.operator("anim.channels_setting_enable", text="Mute Channels").type='MUTE'
|
layout.operator("anim.channels_setting_enable", text="Mute Channels").type = 'MUTE'
|
||||||
layout.operator("anim.channels_setting_disable", text="Unmute Channels").type='MUTE'
|
layout.operator("anim.channels_setting_disable", text="Unmute Channels").type = 'MUTE'
|
||||||
layout.separator()
|
layout.separator()
|
||||||
layout.operator("anim.channels_setting_enable", text="Protect Channels").type='PROTECT'
|
layout.operator("anim.channels_setting_enable", text="Protect Channels").type = 'PROTECT'
|
||||||
layout.operator("anim.channels_setting_disable", text="Unprotect Channels").type='PROTECT'
|
layout.operator("anim.channels_setting_disable", text="Unprotect Channels").type = 'PROTECT'
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
layout.operator("anim.channels_group")
|
layout.operator("anim.channels_group")
|
||||||
|
|||||||
@@ -621,6 +621,7 @@ class IMAGE_PT_tools_mask(MASK_PT_tools, Panel):
|
|||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
bl_category = 'Mask'
|
bl_category = 'Mask'
|
||||||
|
|
||||||
|
|
||||||
class IMAGE_PT_tools_mask_add(MASK_PT_add, Panel):
|
class IMAGE_PT_tools_mask_add(MASK_PT_add, Panel):
|
||||||
bl_space_type = 'IMAGE_EDITOR'
|
bl_space_type = 'IMAGE_EDITOR'
|
||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
@@ -1164,8 +1165,6 @@ class IMAGE_PT_uv_sculpt(Panel, ImagePaintPanel):
|
|||||||
col.prop(uvsculpt, "show_brush")
|
col.prop(uvsculpt, "show_brush")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class IMAGE_PT_options_uvs(Panel, UVToolsPanel):
|
class IMAGE_PT_options_uvs(Panel, UVToolsPanel):
|
||||||
bl_label = "UV Options"
|
bl_label = "UV Options"
|
||||||
bl_category = "Options"
|
bl_category = "Options"
|
||||||
|
|||||||
@@ -542,11 +542,15 @@ class NODE_PT_tools_grease_pencil_sculpt(GreasePencilStrokeSculptPanel, Panel):
|
|||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
|
|
||||||
# Grease Pencil drawing brushes
|
# Grease Pencil drawing brushes
|
||||||
|
|
||||||
|
|
||||||
class NODE_PT_tools_grease_pencil_brush(GreasePencilBrushPanel, Panel):
|
class NODE_PT_tools_grease_pencil_brush(GreasePencilBrushPanel, Panel):
|
||||||
bl_space_type = 'NODE_EDITOR'
|
bl_space_type = 'NODE_EDITOR'
|
||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
|
|
||||||
# Grease Pencil drawing curves
|
# Grease Pencil drawing curves
|
||||||
|
|
||||||
|
|
||||||
class NODE_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
class NODE_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
||||||
bl_space_type = 'NODE_EDITOR'
|
bl_space_type = 'NODE_EDITOR'
|
||||||
bl_region_type = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
@@ -557,6 +561,7 @@ class NODE_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Pane
|
|||||||
def node_draw_tree_view(layout, context):
|
def node_draw_tree_view(layout, context):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
NODE_HT_header,
|
NODE_HT_header,
|
||||||
NODE_MT_editor_menus,
|
NODE_MT_editor_menus,
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ class OUTLINER_MT_collection(Menu):
|
|||||||
layout.operator("outliner.collection_instance", text="Instance to Scene")
|
layout.operator("outliner.collection_instance", text="Instance to Scene")
|
||||||
if space.display_mode != 'VIEW_LAYER':
|
if space.display_mode != 'VIEW_LAYER':
|
||||||
layout.operator("outliner.collection_link", text="Link to Scene")
|
layout.operator("outliner.collection_link", text="Link to Scene")
|
||||||
layout.operator("outliner.id_operation", text="Unlink").type='UNLINK'
|
layout.operator("outliner.id_operation", text="Unlink").type = 'UNLINK'
|
||||||
|
|
||||||
if space.display_mode == 'VIEW_LAYER':
|
if space.display_mode == 'VIEW_LAYER':
|
||||||
layout.separator()
|
layout.separator()
|
||||||
@@ -206,20 +206,20 @@ class OUTLINER_MT_object(Menu):
|
|||||||
|
|
||||||
space = context.space_data
|
space = context.space_data
|
||||||
|
|
||||||
layout.operator("outliner.object_operation", text="Delete").type='DELETE'
|
layout.operator("outliner.object_operation", text="Delete").type = 'DELETE'
|
||||||
if space.display_mode == 'VIEW_LAYER' and not space.use_filter_collection:
|
if space.display_mode == 'VIEW_LAYER' and not space.use_filter_collection:
|
||||||
layout.operator("outliner.object_operation", text="Delete Hierarchy").type='DELETE_HIERARCHY'
|
layout.operator("outliner.object_operation", text="Delete Hierarchy").type = 'DELETE_HIERARCHY'
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
||||||
layout.operator("outliner.object_operation", text="Select").type='SELECT'
|
layout.operator("outliner.object_operation", text="Select").type = 'SELECT'
|
||||||
layout.operator("outliner.object_operation", text="Select Hierarchy").type='SELECT_HIERARCHY'
|
layout.operator("outliner.object_operation", text="Select Hierarchy").type = 'SELECT_HIERARCHY'
|
||||||
layout.operator("outliner.object_operation", text="Deselect").type='DESELECT'
|
layout.operator("outliner.object_operation", text="Deselect").type = 'DESELECT'
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
||||||
if not (space.display_mode == 'VIEW_LAYER' and not space.use_filter_collection):
|
if not (space.display_mode == 'VIEW_LAYER' and not space.use_filter_collection):
|
||||||
layout.operator("outliner.id_operation", text="Unlink").type='UNLINK'
|
layout.operator("outliner.id_operation", text="Unlink").type = 'UNLINK'
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
||||||
layout.operator_menu_enum("outliner.id_operation", 'type', text="ID Data")
|
layout.operator_menu_enum("outliner.id_operation", 'type', text="ID Data")
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ class STATUSBAR_HT_header(Header):
|
|||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
STATUSBAR_HT_header,
|
STATUSBAR_HT_header,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ class TIME_MT_editor_menus(Menu):
|
|||||||
panel_type="TIME_PT_keyframing_settings",
|
panel_type="TIME_PT_keyframing_settings",
|
||||||
text="Keying")
|
text="Keying")
|
||||||
|
|
||||||
|
|
||||||
class TIME_MT_marker(Menu):
|
class TIME_MT_marker(Menu):
|
||||||
bl_label = "Marker"
|
bl_label = "Marker"
|
||||||
|
|
||||||
@@ -217,6 +218,7 @@ def marker_menu_generic(layout):
|
|||||||
|
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
|
|
||||||
class TimelinePanelButtons:
|
class TimelinePanelButtons:
|
||||||
bl_space_type = 'DOPESHEET_EDITOR'
|
bl_space_type = 'DOPESHEET_EDITOR'
|
||||||
bl_region_type = 'UI'
|
bl_region_type = 'UI'
|
||||||
|
|||||||
@@ -427,7 +427,6 @@ class ToolSelectPanelHelper:
|
|||||||
|
|
||||||
return ui_gen, show_text
|
return ui_gen, show_text
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def draw_cls(cls, layout, context, detect_layout=True):
|
def draw_cls(cls, layout, context, detect_layout=True):
|
||||||
# Use a classmethod so it can be called outside of a panel context.
|
# Use a classmethod so it can be called outside of a panel context.
|
||||||
@@ -676,6 +675,7 @@ def keymap_from_context(context, space_type):
|
|||||||
wm.keyconfigs.update()
|
wm.keyconfigs.update()
|
||||||
return keymap
|
return keymap
|
||||||
|
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
WM_MT_toolsystem_submenu,
|
WM_MT_toolsystem_submenu,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -292,7 +292,6 @@ class _defs_edit_armature:
|
|||||||
|
|
||||||
class _defs_edit_mesh:
|
class _defs_edit_mesh:
|
||||||
|
|
||||||
|
|
||||||
@ToolDef.from_fn
|
@ToolDef.from_fn
|
||||||
def cube_add():
|
def cube_add():
|
||||||
return dict(
|
return dict(
|
||||||
|
|||||||
@@ -141,7 +141,6 @@ class USERPREF_MT_app_templates(Menu):
|
|||||||
layout.operator_context = 'INVOKE_DEFAULT'
|
layout.operator_context = 'INVOKE_DEFAULT'
|
||||||
props = layout.operator("wm.app_template_install")
|
props = layout.operator("wm.app_template_install")
|
||||||
|
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
self.draw_ex(context, use_splash=False, use_default=True, use_install=True)
|
self.draw_ex(context, use_splash=False, use_default=True, use_install=True)
|
||||||
|
|
||||||
@@ -282,14 +281,14 @@ class USERPREF_PT_interface(Panel):
|
|||||||
row.separator()
|
row.separator()
|
||||||
|
|
||||||
col = row.column()
|
col = row.column()
|
||||||
#Toolbox doesn't exist yet
|
# Toolbox doesn't exist yet
|
||||||
#col.label(text="Toolbox:")
|
# col.label(text="Toolbox:")
|
||||||
#col.prop(view, "show_column_layout")
|
#col.prop(view, "show_column_layout")
|
||||||
#col.label(text="Open Toolbox Delay:")
|
#col.label(text="Open Toolbox Delay:")
|
||||||
#col.prop(view, "open_left_mouse_delay", text="Hold LMB")
|
#col.prop(view, "open_left_mouse_delay", text="Hold LMB")
|
||||||
#col.prop(view, "open_right_mouse_delay", text="Hold RMB")
|
#col.prop(view, "open_right_mouse_delay", text="Hold RMB")
|
||||||
col.prop(view, "show_manipulator")
|
col.prop(view, "show_manipulator")
|
||||||
## Currently not working
|
# Currently not working
|
||||||
# col.prop(view, "show_manipulator_shaded")
|
# col.prop(view, "show_manipulator_shaded")
|
||||||
sub = col.column()
|
sub = col.column()
|
||||||
sub.active = view.show_manipulator
|
sub.active = view.show_manipulator
|
||||||
@@ -328,7 +327,6 @@ class USERPREF_PT_interface(Panel):
|
|||||||
col.prop(view, "show_view3d_cursor")
|
col.prop(view, "show_view3d_cursor")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class USERPREF_PT_edit(Panel):
|
class USERPREF_PT_edit(Panel):
|
||||||
bl_space_type = 'USER_PREFERENCES'
|
bl_space_type = 'USER_PREFERENCES'
|
||||||
bl_label = "Edit"
|
bl_label = "Edit"
|
||||||
@@ -412,7 +410,7 @@ class USERPREF_PT_edit(Panel):
|
|||||||
|
|
||||||
sub = col.column()
|
sub = col.column()
|
||||||
|
|
||||||
#~ sub.active = edit.use_keyframe_insert_auto # incorrect, time-line can enable
|
# ~ sub.active = edit.use_keyframe_insert_auto # incorrect, time-line can enable
|
||||||
sub.prop(edit, "use_keyframe_insert_available", text="Only Insert Available")
|
sub.prop(edit, "use_keyframe_insert_available", text="Only Insert Available")
|
||||||
|
|
||||||
col.separator()
|
col.separator()
|
||||||
@@ -1217,7 +1215,7 @@ class USERPREF_PT_input(Panel):
|
|||||||
|
|
||||||
#sub.prop(inputs, "use_mouse_mmb_paste")
|
#sub.prop(inputs, "use_mouse_mmb_paste")
|
||||||
|
|
||||||
#col.separator()
|
# col.separator()
|
||||||
|
|
||||||
sub = col.column()
|
sub = col.column()
|
||||||
sub.prop(inputs, "invert_zoom_wheel", text="Invert Wheel Zoom Direction")
|
sub.prop(inputs, "invert_zoom_wheel", text="Invert Wheel Zoom Direction")
|
||||||
@@ -1410,7 +1408,6 @@ class USERPREF_PT_addons(Panel):
|
|||||||
sub_col.label(" " + addon_file)
|
sub_col.label(" " + addon_file)
|
||||||
sub_col.label(" " + addon_path)
|
sub_col.label(" " + addon_path)
|
||||||
|
|
||||||
|
|
||||||
if addon_utils.error_encoding:
|
if addon_utils.error_encoding:
|
||||||
self.draw_error(
|
self.draw_error(
|
||||||
col,
|
col,
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ class VIEW3D_PT_tools_meshedit_options(View3DPanel, Panel):
|
|||||||
|
|
||||||
# ********** default tools for editmode_curve ****************
|
# ********** default tools for editmode_curve ****************
|
||||||
|
|
||||||
|
|
||||||
class VIEW3D_PT_tools_curveedit_options_stroke(View3DPanel, Panel):
|
class VIEW3D_PT_tools_curveedit_options_stroke(View3DPanel, Panel):
|
||||||
bl_category = "Options"
|
bl_category = "Options"
|
||||||
bl_context = ".curve_edit" # dot on purpose (access from topbar)
|
bl_context = ".curve_edit" # dot on purpose (access from topbar)
|
||||||
@@ -155,8 +156,6 @@ class VIEW3D_PT_tools_curveedit_options_stroke(View3DPanel, Panel):
|
|||||||
colsub.prop(cps, "surface_plane", expand=True)
|
colsub.prop(cps, "surface_plane", expand=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ********** default tools for editmode_armature ****************
|
# ********** default tools for editmode_armature ****************
|
||||||
|
|
||||||
|
|
||||||
@@ -1323,6 +1322,8 @@ class VIEW3D_PT_tools_grease_pencil_brush(GreasePencilBrushPanel, Panel):
|
|||||||
bl_space_type = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
|
|
||||||
# Grease Pencil drawingcurves
|
# Grease Pencil drawingcurves
|
||||||
|
|
||||||
|
|
||||||
class VIEW3D_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
class VIEW3D_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
||||||
bl_space_type = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
|
|
||||||
|
|||||||
@@ -302,8 +302,8 @@ static StructRNA *rna_Panel_register(
|
|||||||
|
|
||||||
static StructRNA *rna_Panel_refine(PointerRNA *ptr)
|
static StructRNA *rna_Panel_refine(PointerRNA *ptr)
|
||||||
{
|
{
|
||||||
Panel *hdr = (Panel *)ptr->data;
|
Panel *menu = (Panel *)ptr->data;
|
||||||
return (hdr->type && hdr->type->ext.srna) ? hdr->type->ext.srna : &RNA_Panel;
|
return (menu->type && menu->type->ext.srna) ? menu->type->ext.srna : &RNA_Panel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* UIList */
|
/* UIList */
|
||||||
@@ -696,7 +696,7 @@ static int menu_poll(const bContext *C, MenuType *pt)
|
|||||||
return visible;
|
return visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void menu_draw(const bContext *C, Menu *hdr)
|
static void menu_draw(const bContext *C, Menu *menu)
|
||||||
{
|
{
|
||||||
extern FunctionRNA rna_Menu_draw_func;
|
extern FunctionRNA rna_Menu_draw_func;
|
||||||
|
|
||||||
@@ -704,12 +704,12 @@ static void menu_draw(const bContext *C, Menu *hdr)
|
|||||||
ParameterList list;
|
ParameterList list;
|
||||||
FunctionRNA *func;
|
FunctionRNA *func;
|
||||||
|
|
||||||
RNA_pointer_create(&CTX_wm_screen(C)->id, hdr->type->ext.srna, hdr, &mtr);
|
RNA_pointer_create(&CTX_wm_screen(C)->id, menu->type->ext.srna, menu, &mtr);
|
||||||
func = &rna_Menu_draw_func; /* RNA_struct_find_function(&mtr, "draw"); */
|
func = &rna_Menu_draw_func; /* RNA_struct_find_function(&mtr, "draw"); */
|
||||||
|
|
||||||
RNA_parameter_list_create(&list, &mtr, func);
|
RNA_parameter_list_create(&list, &mtr, func);
|
||||||
RNA_parameter_set_lookup(&list, "context", &C);
|
RNA_parameter_set_lookup(&list, "context", &C);
|
||||||
hdr->type->ext.call((bContext *)C, &mtr, func, &list);
|
menu->type->ext.call((bContext *)C, &mtr, func, &list);
|
||||||
|
|
||||||
RNA_parameter_list_free(&list);
|
RNA_parameter_list_free(&list);
|
||||||
}
|
}
|
||||||
@@ -818,8 +818,8 @@ static StructRNA *rna_Menu_register(
|
|||||||
|
|
||||||
static StructRNA *rna_Menu_refine(PointerRNA *mtr)
|
static StructRNA *rna_Menu_refine(PointerRNA *mtr)
|
||||||
{
|
{
|
||||||
Menu *hdr = (Menu *)mtr->data;
|
Menu *menu = (Menu *)mtr->data;
|
||||||
return (hdr->type && hdr->type->ext.srna) ? hdr->type->ext.srna : &RNA_Menu;
|
return (menu->type && menu->type->ext.srna) ? menu->type->ext.srna : &RNA_Menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rna_Menu_bl_description_set(PointerRNA *ptr, const char *value)
|
static void rna_Menu_bl_description_set(PointerRNA *ptr, const char *value)
|
||||||
|
|||||||
Reference in New Issue
Block a user