Skip to content

Commit

Permalink
Bugfix: Moved sceneProperties default value to the right place.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-LaCroix committed Jun 2, 2024
1 parent c23257e commit 6865c5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Noble.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,10 @@ function Noble.new(StartingScene, __launcherTransitionDuration, __launcherTransi
local launcherTransition = __launcherTransition or defaultConfiguration.defaultTransition
local launcherTransitionDuration = __launcherTransitionDuration or 1.5
local launcherTransitionProperties =__launcherTransitionProperties or {}
local sceneProperties = __sceneProperties or {}

-- Now that everything is set, let's-a go!
engineInitialized = true
Noble.transition(StartingScene, launcherTransitionDuration, launcherTransition, launcherTransitionProperties, sceneProperties)
Noble.transition(StartingScene, launcherTransitionDuration, launcherTransition, launcherTransitionProperties, __sceneProperties)
end

--- This checks to see if `Noble.new` has been run. It is used internally to ward off bonks.
Expand Down Expand Up @@ -254,7 +253,8 @@ function Noble.transition(NewScene, __duration, __transition, __transitionProper
-- We don't return here because maybe the developer *did* intend to override a previous call to Noble.transition().
end

queuedScene = NewScene(__sceneProperties) -- Creates new scene object. Its init() function runs now.
local sceneProperties = __sceneProperties or {}
queuedScene = NewScene(sceneProperties) -- Creates new scene object. Its init() function runs now.

currentTransition = (__transition or configuration.defaultTransition)(
__duration or configuration.defaultTransitionDuration,
Expand Down

0 comments on commit 6865c5c

Please sign in to comment.