Skip to content

Commit bfdb100

Browse files
authored
Merge pull request #3259 from moisesjpelaez/general_fixes
General changes
2 parents fde9f65 + f9f38af commit bfdb100

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

armory/Sources/iron/App.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class App {
2828
static var time = 0.0;
2929
static var lastw = -1;
3030
static var lasth = -1;
31-
public static var onResize: Void->Void = null;
31+
public static var onResize: Void->Void = null; // TODO: deprecate this. Use armory.system.Signal 'resized' instead.
32+
public static var resized: armory.system.Signal = new armory.system.Signal(); // args: (w: Int, h: Int)
3233

3334
public static function init(done: Void->Void) {
3435
new App(done);
@@ -60,6 +61,7 @@ class App {
6061
lasth = App.h();
6162
}
6263
if (lastw != App.w() || lasth != App.h()) {
64+
resized.emit(App.w(), App.h());
6365
if (onResize != null) onResize();
6466
else {
6567
if (Scene.active != null && Scene.active.camera != null) {

armory/blender/arm/make_world.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ def build():
3838
wrd = bpy.data.worlds['Arm']
3939
rpdat = arm.utils.get_rp()
4040

41+
if rpdat is None:
42+
log.error("No render path found. Please ensure a valid render path is selected.")
43+
return
44+
4145
mobile_mat = rpdat.arm_material_model == 'Mobile' or rpdat.arm_material_model == 'Solid'
4246
envpath = os.path.join(arm.utils.get_fp_build(), 'compiled', 'Assets', 'envmaps')
4347

0 commit comments

Comments
 (0)