Skip to content

Commit 29c0425

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Turtle.get_Duration default ( Fixes #270 )
1 parent c7ad57c commit 29c0425

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Turtle.types.ps1xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4065,9 +4065,14 @@ $this | Add-Member -MemberType NoteProperty -Force -Name '.Defines' -Value $newD
40654065
Gets the duration
40664066
.DESCRIPTION
40674067
Gets the default duration of animations and morphs.
4068+
4069+
By default, 4.2 seconds.
40684070
#>
4069-
if ($this.'.Duration') { return $this.'.Duration'}
4070-
return
4071+
if ($null -eq $this.'.Duration') {
4072+
$this | Add-Member NoteProperty '.Duration' ([timespan]::FromSeconds(4.2)) -Force
4073+
}
4074+
return $this.'.Duration'
4075+
40714076
</GetScriptBlock>
40724077
<SetScriptBlock>
40734078
&lt;#

0 commit comments

Comments
 (0)