Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UI for Blender 2.8 #8

Open
dimitarsp opened this issue Jan 12, 2020 · 2 comments
Open

Update UI for Blender 2.8 #8

dimitarsp opened this issue Jan 12, 2020 · 2 comments

Comments

@dimitarsp
Copy link

dimitarsp commented Jan 12, 2020

Hi've made a very minor update so the addon shows up in the correct place in Blender 2.8+. Don't know too much about pull requests so here is the modification in jv_panel.py

class JVPanel(Panel):
    bl_idname = "OBJECT_PT_jv_panel"
    bl_label = "JARCH Vis"
    bl_space_type = "VIEW_3D"
    bl_region_type = "UI"
    # bl_region_type = "TOOLS" 
    bl_category="JARCH Vis"

Edit

Figured out how to create a pull request

@pixelinkmedia
Copy link

pixelinkmedia commented Jun 2, 2020

Well, I just downloaded plugin. Thanks

But it still shows up in the wrong location and is not usable unless you widen the toolbar.
Plugins today should go just into the View3D tab shelf on the N-Panel.

This is on the toolbar
I have Blender 2.82a

jarchvixbug

@pixelinkmedia
Copy link

pixelinkmedia commented Jun 2, 2020

I made some changes to the script to get it to work.

  1. init.py
    Correct
    "location": "View3D",
    incorrect
    #"location": "View 3D > Toolbar > JARCH Vis",

  2. jv_panel.py
    I added
    bl_category = "JARCH Vis"
    Correct
    bl_space_type = "VIEW_3D"
    incorrect (this caused it to be in the wrong location)
    #bl_region_type = "TOOLS"

Hope that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants