mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
tkpanels: work around tkinter bug cancelling file open dialog on macOS
Fixes #811
This commit is contained in:
parent
2b9cc61d04
commit
7ca66bfe6f
@ -276,7 +276,7 @@ class AnimPanel(AppShell):
|
||||
title = 'Load Animation',
|
||||
parent = self.component('hull')
|
||||
)
|
||||
if not animFilename:
|
||||
if not animFilename and animFilename != 'None':
|
||||
# no file selected, canceled
|
||||
return
|
||||
|
||||
|
@ -1638,7 +1638,7 @@ class MopathRecorder(AppShell, DirectObject):
|
||||
initialdir = path,
|
||||
title = 'Load Nurbs Curve',
|
||||
parent = self.parent)
|
||||
if mopathFilename:
|
||||
if mopathFilename and mopathFilename != 'None':
|
||||
self.reset()
|
||||
nodePath = loader.loadModel(
|
||||
Filename.fromOsSpecific(mopathFilename))
|
||||
|
@ -1272,7 +1272,7 @@ class ParticlePanel(AppShell):
|
||||
initialdir = path,
|
||||
title = 'Load Particle Effect',
|
||||
parent = self.parent)
|
||||
if particleFilename:
|
||||
if particleFilename and particleFilename != 'None':
|
||||
# Delete existing particles and forces
|
||||
self.particleEffect.loadConfig(
|
||||
Filename.fromOsSpecific(particleFilename))
|
||||
|
Loading…
x
Reference in New Issue
Block a user