@threepipe/webgi-plugins 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @threepipe/webgi-plugins v0.5.
|
|
3
|
+
* @threepipe/webgi-plugins v0.5.5
|
|
4
4
|
* Copyright 2022-2025 repalash <palash@shaders.app> (https://repalash.com)
|
|
5
5
|
* SEE LICENSE IN LICENSE
|
|
6
6
|
*/
|
|
@@ -1924,7 +1924,13 @@ let OutlinePlugin = class extends AScreenPassExtensionPlugin {
|
|
|
1924
1924
|
super.setDirty();
|
|
1925
1925
|
if (!this._viewer) return;
|
|
1926
1926
|
const picking = this._viewer.getPlugin(PickingPlugin);
|
|
1927
|
-
|
|
1927
|
+
let enabled = !this.isDisabled();
|
|
1928
|
+
if (enabled) {
|
|
1929
|
+
const selected = picking?.getSelectedObject();
|
|
1930
|
+
if (typeof selected?.type === "string" && selected?.type?.includes("Line")) {
|
|
1931
|
+
enabled = false;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1928
1934
|
if (picking) {
|
|
1929
1935
|
if (enabled && picking.widgetEnabled) {
|
|
1930
1936
|
picking.widgetEnabled = false;
|