Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-29 10:44:57 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-29 10:55:47 +0300
commite017876f78b4fe4ef39706f0c16000935c133071 (patch)
tree933da4a53fea0391703ec755996da3f021dc16d6 /tests
parent03957b9487d3ab6ee6e14fb8848d08ca97cd3d70 (diff)
3D View: add initial view.shading and view.overlay in RNA.
These are mostly empty still, many properties need to be renamed and moved there.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/bl_mesh_modifiers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/python/bl_mesh_modifiers.py b/tests/python/bl_mesh_modifiers.py
index f202e5b6611..60e6d35def9 100644
--- a/tests/python/bl_mesh_modifiers.py
+++ b/tests/python/bl_mesh_modifiers.py
@@ -38,12 +38,12 @@ USE_QUICK_RENDER = False
def render_gl(context, filepath, shade):
- def ctx_viewport_shade(context, shade):
+ def ctx_shading_type(context, shade):
for area in context.window.screen.areas:
if area.type == 'VIEW_3D':
space = area.spaces.active
# rv3d = space.region_3d
- space.viewport_shade = shade
+ space.shading.type = shade
import bpy
scene = context.scene
@@ -59,7 +59,7 @@ def render_gl(context, filepath, shade):
render.resolution_x = 512
render.resolution_y = 512
- ctx_viewport_shade(context, shade)
+ ctx_shading_type(context, shade)
#~ # stop to inspect!
#~ if filepath == "test_cube_shell_solidify_subsurf_wp_wire":