mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
BGE LibLoad: Allow the user to disable loading text datablocks if they want to attempt to increase security by not loading potential Python scripts.
This commit is contained in:
parent
df3f3dff3b
commit
7fb85e1fb7
4 changed files with 13 additions and 9 deletions
|
|
@ -172,7 +172,7 @@ General functions
|
|||
|
||||
Restarts the current game by reloading the .blend file (the last saved version, not what is currently running).
|
||||
|
||||
.. function:: LibLoad(blend, type, data, load_actions=False, verbose=False)
|
||||
.. function:: LibLoad(blend, type, data, load_actions=False, verbose=False, load_scripts=True)
|
||||
|
||||
Converts the all of the datablocks of the given type from the given blend.
|
||||
|
||||
|
|
@ -186,6 +186,8 @@ General functions
|
|||
:type load_actions: bool
|
||||
:arg verbose: Whether or not to print debugging information (e.g., "SceneName: Scene")
|
||||
:type verbose: bool
|
||||
:arg load_scripts: Whether or not to load text datablocks as well (can be disabled for some extra security)
|
||||
:type load_scripts: bool
|
||||
|
||||
.. function:: LibNew(name, type, data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue