- 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)
|
||||
|
||||
@@ -675,6 +675,10 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
|
||||
if([self isOscEnabled]) [self reloadLegacyWidgets:oscProfile];
|
||||
else [self disableOnScreenControls];
|
||||
}
|
||||
|
||||
if(reload && !OnScreenWidgetView.editMode){
|
||||
[PencilHandler.shared setupPressureLUTWithProfile:oscProfile];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user