Skip to content

Commit 26b86df

Browse files
committed
Merge branch 'release/1.10.x'
2 parents 68a4031 + b573cc3 commit 26b86df

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

direct/src/actor/Actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,7 @@ def unloadAnims(self, anims=None, partName=None, lodName=None):
22812281
# our handle on them go. This is especially
22822282
# important if the anim control was blending
22832283
# animations.
2284-
animDef.animControl.getPart().clearControlEffects()
2284+
animDef.animControl.getPart().setControlEffect(animDef.animControl, 0.0)
22852285
animDef.animControl = None
22862286

22872287

makepanda/makepanda.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2720,14 +2720,28 @@ def get_config_express():
27202720
# otherwise, disable it.
27212721
confautoprc = confautoprc.replace('#st#', '#')
27222722

2723-
if PkgSkip("ASSIMP"):
2723+
confautoprc = confautoprc.replace('\r\n', '\n')
2724+
2725+
if PkgSkip("ASSIMP") or GetLinkAllStatic():
27242726
confautoprc = confautoprc.replace("load-file-type p3assimp", "#load-file-type p3assimp")
27252727

2728+
if PkgSkip("EGG") or GetLinkAllStatic():
2729+
confautoprc = confautoprc.replace("load-file-type egg pandaegg", "#load-file-type egg pandaegg")
2730+
2731+
if PkgSkip("PANDATOOL") or PkgSkip("EGG") or GetLinkAllStatic():
2732+
confautoprc = confautoprc.replace("load-file-type p3ptloader", "#load-file-type p3ptloader")
2733+
2734+
if PkgSkip("FFMPEG") or GetLinkAllStatic():
2735+
confautoprc = confautoprc.replace("load-audio-type * p3ffmpeg", "#load-audio-type * p3ffmpeg")
2736+
confautoprc = confautoprc.replace("load-video-type * p3ffmpeg", "#load-video-type * p3ffmpeg")
2737+
27262738
if (os.path.isfile("makepanda/myconfig.in")):
27272739
configprc = ReadFile("makepanda/myconfig.in")
27282740
else:
27292741
configprc = ReadFile("makepanda/config.in")
27302742

2743+
configprc = configprc.replace('\r\n', '\n')
2744+
27312745
if (GetTarget() == 'windows'):
27322746
configprc = configprc.replace("$XDG_CACHE_HOME/panda3d", "$USER_APPDATA/Panda3D-%s" % MAJOR_VERSION)
27332747
else:
@@ -2736,6 +2750,21 @@ def get_config_express():
27362750
if (GetTarget() == 'darwin'):
27372751
configprc = configprc.replace("$XDG_CACHE_HOME/panda3d", "$HOME/Library/Caches/Panda3D-%s" % MAJOR_VERSION)
27382752

2753+
if PkgSkip("GL") or GetLinkAllStatic():
2754+
configprc = configprc.replace("\nload-display pandagl", "\n#load-display pandagl")
2755+
2756+
if PkgSkip("GLES") or GetLinkAllStatic():
2757+
configprc = configprc.replace("\n#load-display pandagles", "")
2758+
2759+
if PkgSkip("DX9") or GetLinkAllStatic():
2760+
configprc = configprc.replace("\n#load-display pandadx9", "")
2761+
2762+
if PkgSkip("TINYDISPLAY") or GetLinkAllStatic():
2763+
configprc = configprc.replace("\n#load-display p3tinydisplay", "")
2764+
2765+
if PkgSkip("OPENAL") or GetLinkAllStatic():
2766+
configprc = configprc.replace("audio-library-name p3openal_audio", "#audio-library-name p3openal_audio")
2767+
27392768
if GetTarget() == 'windows':
27402769
# Convert to Windows newlines.
27412770
ConditionalWriteFile(GetOutputDir()+"/etc/Config.prc", configprc, newline='\r\n')

panda/src/cocoadisplay/cocoaGraphicsWindow.mm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,17 +1335,17 @@
13351335

13361336
CGFloat hotspot_x = 0.0f;
13371337
CGFloat hotspot_y = 0.0f;
1338-
if (image_props[@"hotspotX"] != nil) {
1339-
hotspot_x = [(NSNumber *)image_props[@"hotspotX"] floatValue];
1338+
if (NSNumber *number = image_props[@"hotspotX"]) {
1339+
hotspot_x = [number floatValue];
13401340
}
1341-
if (image_props[@"hotspotY"] != nil) {
1342-
hotspot_y = [(NSNumber *)image_props[@"hotspotY"] floatValue];
1341+
if (NSNumber *number = image_props[@"hotspotY"]) {
1342+
hotspot_y = [number floatValue];
13431343
}
13441344
[image_props release];
13451345

13461346
NSImage *image = [[NSImage alloc] initWithData:image_data];
13471347

1348-
NSCursor *cursor;
1348+
NSCursor *cursor = nil;
13491349
if (image != nil) {
13501350
// Apple recognizes that hotspots are usually specified from a .cur
13511351
// file, whose origin is in the top-left, so there's no need to flip

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy