Fix leak in tool tooltip creation
This commit is contained in:
parent
af1cf00003
commit
e8fa13b01e
|
@ -656,7 +656,7 @@ def description_from_name(context, space_type, text, *, use_operator=True):
|
|||
|
||||
if operator is not None:
|
||||
import _bpy
|
||||
return _bpy.ops.get_rna(operator).bl_rna.description
|
||||
return _bpy.ops.get_rna_type(operator).description
|
||||
return ""
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue