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

Export issues with Blender 3.1 #382

Merged
merged 7 commits into from
Mar 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Width bug with blender 3.10
  • Loading branch information
Moustik06 authored Mar 9, 2022
commit a9fdcb22d307117fdf5f148a43185ecf7999488e
12 changes: 6 additions & 6 deletions tools/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def execute(self, context):

def invoke(self, context, event):
dpi_value = Common.get_user_preferences().system.dpi
return context.window_manager.invoke_props_dialog(self, width=dpi_value * 6)
return context.window_manager.invoke_props_dialog(self, width=int(dpi_value * 6))

def check(self, context):
# Important for changing options
Expand Down Expand Up @@ -391,7 +391,7 @@ def execute(self, context):

def invoke(self, context, event):
dpi_value = Common.get_user_preferences().system.dpi
return context.window_manager.invoke_props_dialog(self, width=dpi_value * 3)
return context.window_manager.invoke_props_dialog(self, width=int(dpi_value * 3))

def check(self, context):
# Important for changing options
Expand Down Expand Up @@ -555,7 +555,7 @@ def execute(self, context):

def invoke(self, context, event):
dpi_value = Common.get_user_preferences().system.dpi
return context.window_manager.invoke_props_dialog(self, width=dpi_value * 4.5)
return context.window_manager.invoke_props_dialog(self, width=int(dpi_value * 4.5))

def check(self, context):
# Important for changing options
Expand Down Expand Up @@ -592,7 +592,7 @@ def execute(self, context):

def invoke(self, context, event):
dpi_value = Common.get_user_preferences().system.dpi
return context.window_manager.invoke_props_dialog(self, width=dpi_value * 4.5)
return context.window_manager.invoke_props_dialog(self, width=int(dpi_value * 4.5))

def check(self, context):
# Important for changing options
Expand Down Expand Up @@ -629,7 +629,7 @@ def execute(self, context):

def invoke(self, context, event):
dpi_value = Common.get_user_preferences().system.dpi
return context.window_manager.invoke_props_dialog(self, width=dpi_value * 4.5)
return context.window_manager.invoke_props_dialog(self, width=int(dpi_value * 4.5))

def check(self, context):
# Important for changing options
Expand Down Expand Up @@ -665,7 +665,7 @@ def execute(self, context):

def invoke(self, context, event):
dpi_value = Common.get_user_preferences().system.dpi
return context.window_manager.invoke_props_dialog(self, width=dpi_value * 4)
return context.window_manager.invoke_props_dialog(self, width=int(dpi_value * 4))

def check(self, context):
# Important for changing options
Expand Down