@@ -333,7 +333,7 @@ def draw_scene(self, context, depsgraph):
333333 f64render_rs : F64RenderSettings = depsgraph .scene .f64render .render_settings
334334 always_set = f64render_rs .always_set
335335 projection_matrix , view_matrix = context .region_data .perspective_matrix , context .region_data .view_matrix
336- prefs = context .preferences .addons [__name__ . split ( "." )[ 0 ] ].preferences
336+ prefs = context .preferences .addons [__package__ ].preferences
337337 self .use_atomic_rendering = bpy .app .version >= (4 , 1 , 0 ) and prefs .use_atomic_rendering
338338
339339 if F64_GLOBALS .rebuild_shaders or self .shader is None :
@@ -401,7 +401,8 @@ def draw_scene(self, context, depsgraph):
401401
402402 # @TODO: why can't i cache this?
403403 vbo_2d = gpu .types .GPUVertBuf (self .shader_2d .format_calc (), 6 )
404- vbo_2d .attr_fill ("pos" , [(- 1 , - 1 ), (- 1 , 1 ), (1 , 1 ), (1 , 1 ), (1 , - 1 ), (- 1 , - 1 )])
404+ aid = self .shader_2d .attr_from_name ("pos" )
405+ vbo_2d .attr_fill (aid , [(- 1 , - 1 ), (- 1 , 1 ), (1 , 1 ), (1 , 1 ), (1 , - 1 ), (- 1 , - 1 )])
405406 batch_2d = gpu .types .GPUBatch (type = "TRIS" , buf = vbo_2d )
406407
407408 self .shader_2d .image ("color_texture" , self .color_texture )
@@ -419,7 +420,7 @@ class F64RenderSettingsPanel(bpy.types.Panel):
419420 def draw (self , context ):
420421 f64render_rs : F64RenderSettings = context .scene .f64render .render_settings
421422 f64render_rs .draw_props (self .layout , context .scene .gameEditorMode )
422- prefs = context .preferences .addons [__name__ . split ( "." )[ 0 ] ].preferences
423+ prefs = context .preferences .addons [__package__ ].preferences
423424 prefs .draw_props (self .layout )
424425
425426
0 commit comments