- fixed: unable to setup updated pressure curve mapping after switching widget profile during streaming
This commit is contained in:
1 parent
470862dbe0
commit
6d36219e88
2 files changed
+13
-4
No files matched your search
@@ -49,10 +49,15 @@ import UIKit
|
||||
PencilHandler.shared = self
|
||||
}
|
||||
|
||||
public func setupPressureLUT(){
|
||||
let oscProfileMan = OSCProfilesManager.sharedManager(CGRectZero)
|
||||
PencilHandler.selectedProfile = oscProfileMan.getSelectedProfile()
|
||||
guard let selectedProfile = PencilHandler.selectedProfile else {return}
|
||||
@objc public func setupPressureLUT(profile:OSCProfile? = nil){
|
||||
var selectedProfile:OSCProfile
|
||||
if profile == nil {
|
||||
let oscProfileMan = OSCProfilesManager.sharedManager(CGRectZero)
|
||||
selectedProfile = oscProfileMan.getSelectedProfile()
|
||||
}
|
||||
else{
|
||||
selectedProfile = profile!
|
||||
}
|
||||
|
||||
if selectedProfile.eraserShortcut != "" {
|
||||
doubleTapShorcuts.append(selectedProfile.eraserShortcut)
|
||||
|
||||
Reference in new issue
Block a user