Skip to content

Commit 279faec

Browse files
committed
enable tinyexr by default
1 parent 005180b commit 279faec

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
@@ -351,7 +351,6 @@
351351
<param index="0" name="buffer" type="PackedByteArray" />
352352
<description>
353353
Loads an image from the binary contents of a OpenEXR file.
354-
[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.
355354
</description>
356355
</method>
357356
<method name="load_from_file" qualifiers="static">
@@ -472,15 +471,13 @@
472471
<param index="1" name="grayscale" type="bool" default="false" />
473472
<description>
474473
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.
475-
[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.
476474
</description>
477475
</method>
478476
<method name="save_exr_to_buffer" qualifiers="const">
479477
<return type="PackedByteArray" />
480478
<param index="0" name="grayscale" type="bool" default="false" />
481479
<description>
482480
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.
483-
[b]Note:[/b] The TinyEXR module is disabled in non-editor builds, which means [method save_exr] will return an empty byte array when it is called from an exported project.
484481
</description>
485482
</method>
486483
<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)