3D Viewport: make shading and overlay DNA match UI names.

We should use consistent naming between the internal code and UI whenever
possible, only reason not to is file compatibility.
This commit is contained in:
Brecht Van Lommel
2018-05-05 10:45:15 +02:00
parent 1983eea98e
commit 2094b45447
14 changed files with 211 additions and 215 deletions

View File

@@ -222,7 +222,7 @@ def object_add_grid_scale(context):
space_data = context.space_data
if space_data and space_data.type == 'VIEW_3D':
return space_data.grid_scale_unit
return space_data.overlay.grid_scale_unit
return 1.0