Skip to content

Commit 8b6f822

Browse files
committed
char: allow creating CharacterSlider with default value
1 parent 98268b5 commit 8b6f822

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

panda/src/char/characterSlider.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ CharacterSlider(PartGroup *parent, const std::string &name)
4444
: MovingPartScalar(parent, name) {
4545
}
4646

47+
/**
48+
*
49+
*/
50+
CharacterSlider::
51+
CharacterSlider(PartGroup *parent, const std::string &name, const PN_stdfloat &default_value)
52+
: MovingPartScalar(parent, name, default_value) {
53+
}
54+
4755
/**
4856
*
4957
*/

panda/src/char/characterSlider.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class EXPCL_PANDA_CHAR CharacterSlider : public MovingPartScalar {
3232

3333
PUBLISHED:
3434
explicit CharacterSlider(PartGroup *parent, const std::string &name);
35+
explicit CharacterSlider(PartGroup *parent, const std::string &name, const PN_stdfloat &default_value);
3536
virtual ~CharacterSlider();
3637

3738
public:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy