Skip to content

Commit c7ad57c

Browse files
feat: Turtle.get_Duration default ( Fixes #270 )
1 parent 2d74887 commit c7ad57c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Types/Turtle/get_Duration.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Gets the duration
44
.DESCRIPTION
55
Gets the default duration of animations and morphs.
6+
7+
By default, 4.2 seconds.
68
#>
7-
if ($this.'.Duration') { return $this.'.Duration'}
8-
return
9+
if ($null -eq $this.'.Duration') {
10+
$this | Add-Member NoteProperty '.Duration' ([timespan]::FromSeconds(4.2)) -Force
11+
}
12+
return $this.'.Duration'

0 commit comments

Comments
 (0)