Comments (3)
Yeah, it need to get the value each time those functions runs, since the default values would be the what the value is at time of import.
from ursina.
I think the solution is to instead of ...
def load_model(name, folder=application.asset_folder):
...
... do this:
def load_model(name, folder=None):
if folder is None:
folder = application.asset_folder
Or, if we want to keep the information about the default value in the function declaration :
def load_model(name, folder=Func(getattr, application, 'asset_folder')):
if callable(folder):
folder = folder()
from ursina.
Fixed.
from ursina.
Related Issues (20)
- I tried to merge all cubes in Mesh() function, but it didnt worked for me... HOT 1
- The discord link on reddit is down. HOT 1
- ERROR: Cannot install ursina==0.2, ursina==0.3..........ursina==6.1.1 and ursina==6.1.2 because these package versions have conflicting dependencies. HOT 2
- macOS missing dependency: ModuleNotFoundError: No module named 'screeninfo' HOT 3
- I used 'parent=terrain' and it didnt still worked for me for increase the performance: HOT 1
- Typo on documentation Entity Basics - Other Magic Functions HOT 2
- InputField should have a "wrap text" option
- Ursina cannot open monitor under Docker
- Graphics issues when converting to .exe HOT 2
- Ursina Build too little info HOT 1
- i am getting this error while adding the code snippet for inventory to my game. can someone explain it? HOT 4
- Using more than one boxcast in a single update breaks some of the boxcasts. HOT 2
- Feature - allow the Audio class to allow .mp3 files. HOT 1
- Remove all entities HOT 1
- RTL language support (Persian/Farsi)
- Can't use pyinstaller to ursina HOT 4
- how to load multi textures for one model HOT 1
- Cannot build to exe because of module not found error HOT 2
- how to optimize gaem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ursina.