[Bf-blender-cvs] [e8fa13b01e8] blender2.8: Fix leak in tool tooltip creation

Campbell Barton noreply at git.blender.org
Thu Sep 13 10:11:42 CEST 2018


Commit: e8fa13b01e843ece10ff477357a42436c90d7d1d
Author: Campbell Barton
Date:   Thu Sep 13 18:21:16 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBe8fa13b01e843ece10ff477357a42436c90d7d1d

Fix leak in tool tooltip creation

===================================================================

M	release/scripts/startup/bl_ui/space_toolsystem_common.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py
index 3890396ad2a..f5cb0d006f6 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_common.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py
@@ -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 ""



More information about the Bf-blender-cvs mailing list