Skip to content

Commit e2cdd25

Browse files
committed
enable tinyexr by default
1 parent 2cbfce2 commit e2cdd25

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

doc/classes/Image.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@
359359
<param index="0" name="buffer" type="PackedByteArray" />
360360
<description>
361361
Loads an image from the binary contents of a OpenEXR file.
362-
[b]Note:[/b] The TinyEXR module is disabled in non-editor builds, which means this method will return an error in exported builds unless it is explicitly enabled at build-time using [code]tinyexr_export_templates=yes[/code] SCons option.
363362
</description>
364363
</method>
365364
<method name="load_from_file" qualifiers="static">
@@ -495,15 +494,13 @@
495494
<param index="1" name="grayscale" type="bool" default="false" />
496495
<description>
497496
Saves the image as an EXR file to [param path]. If [param grayscale] is [code]true[/code] and the image has only one channel, it will be saved explicitly as monochrome rather than one red channel. This function will return [constant ERR_UNAVAILABLE] if Godot was compiled without the TinyEXR module.
498-
[b]Note:[/b] The TinyEXR module is disabled in non-editor builds, which means [method save_exr] will return [constant ERR_UNAVAILABLE] when it is called from an exported project.
499497
</description>
500498
</method>
501499
<method name="save_exr_to_buffer" qualifiers="const">
502500
<return type="PackedByteArray" />
503501
<param index="0" name="grayscale" type="bool" default="false" />
504502
<description>
505503
Saves the image as an EXR file to a byte array. If [param grayscale] is [code]true[/code] and the image has only one channel, it will be saved explicitly as monochrome rather than one red channel. This function will return an empty byte array if Godot was compiled without the TinyEXR module.
506-
[b]Note:[/b] The TinyEXR module is disabled in non-editor builds, which means [method save_exr_to_buffer] will return an empty byte array when it is called from an exported project.
507504
</description>
508505
</method>
509506
<method name="save_jpg" qualifiers="const">

modules/tinyexr/config.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
def can_build(env, platform):
2-
return env["tinyexr_export_templates"] or env.editor_build
3-
4-
5-
def get_opts(platform):
6-
from SCons.Variables import BoolVariable
7-
8-
return [
9-
BoolVariable("tinyexr_export_templates", "Enable tinyexr module in non-editor builds too", False),
10-
]
2+
return True
113

124

135
def configure(env):

0 commit comments

Comments
 (0)