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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user