Cleanup: remove redundant preferences.inputs.use_ndof
This is available via: bpy.app.build_options.input_ndof
This commit is contained in:
@@ -1812,9 +1812,7 @@ class USERPREF_PT_input_ndof(InputPanel, CenterAlignMixIn, Panel):
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
prefs = context.preferences
|
||||
inputs = prefs.inputs
|
||||
return inputs.use_ndof
|
||||
return bpy.app.build_options.input_ndof
|
||||
|
||||
def draw_centered(self, context, layout):
|
||||
prefs = context.preferences
|
||||
|
||||
Reference in New Issue
Block a user