Re: [Bf-committers] Unregistering UI panel

2012-10-25 Thread CoDEmanX
It shouldn't add the same panel multiple times, unless you change bl_idname or the unregister_class call is bad. Any errors in console? For manual removal, you can do in pyconsole: bpy.utils.unregister_class(bpy.types.SCENE_PT_layers) # replace SCENE_PT_layers with bl_idname! Am 25.10.2012 21:4

Re: [Bf-committers] Unregistering UI panel

2012-10-25 Thread Brecht Van Lommel
It's a bit difficult to guess what is going on without seeing the actual python code. But perhaps take a look at the UI Panel template scripts in the text editor, they seem to work ok in this situation. Brecht. On Thu, Oct 25, 2012 at 9:48 PM, Tobias Oelgarte wrote: > Hello, > > i started to wri

[Bf-committers] Unregistering UI panel

2012-10-25 Thread Tobias Oelgarte
Hello, i started to write an addon and it needs a lot of testing. But every time I'm running my script it adds an additional panel to the UI. Unregistering the panel seams only to work if i let my script to be loaded as an addon. But how can i remove my added panel(s) if I'm running this scrip