@@ -12,6 +12,7 @@ This version includes:
1212- ` GEMC_PLUGIN_PATH ` and ` -plugin_path ` for external plugin discovery
1313- Pre-parse plugin options hook for dynamic plugin option registration
1414- ROOT gstreamer and event-action bug fixes
15+ - Fixed geometry-tree opacity slider resetting volume color to original
1516- Plotting tests for digitizing-SD examples and Cherenkov photon hit maps
1617
1718<br />
@@ -142,6 +143,12 @@ This version includes:
142143 semi-transparent lighter background to the parameters box so it stands out; the parameters box
143144 is hidden when a system node is selected; all numeric parameter values are formatted to a
144145 maximum of three decimal places and values smaller than 10⁻⁷ are shown as 0.
146+ - Fixed a bug in the geometry-tree opacity slider where adjusting a volume's opacity
147+ would silently reset its color to the original definition value. ` GTree::set_color `
148+ now updates the cached ` G4Ttree_item ` model entry and includes the current opacity in
149+ the ` /vis/geometry/set/colour ` command, so color and opacity are always kept in sync.
150+ The twinkle-animation restore path received the same fix so the model is consistent
151+ after the animation completes.
145152- Replaced the separate ` punit ` , ` aunit ` , and ` vunit ` fields in ` gparticle ` with
146153 direct ` value*unit ` notation on each kinematic field (e.g. ` p: 4*GeV ` ,
147154 ` theta: 23*deg ` , ` vz: -10*cm ` ). A plain number without a unit is still accepted
@@ -427,3 +434,12 @@ Both x86_64 and ARM64 platforms are supported.
427434 carry non-empty parameter data; added `formatVal()` in `gtree.cc` to format all numeric
428435 parameter tokens to at most three significant decimal places and to collapse values smaller
429436 than 10⁻⁷ to zero.
437+ - Fixed geometry-tree color/opacity desync : ` GTree::set_color` was sending the
438+ ` /vis/geometry/set/colour` command without updating the `G4Ttree_item` model cache and
439+ without including the alpha channel, so a subsequent opacity-slider change read stale RGB
440+ values from the model and reset the visible color. `set_color` now calls
441+ ` item->set_color(c)` , reads `item->get_opacity()` to preserve the current alpha, and
442+ appends it to the colour command. Changed `G4Ttree_item::set_color` to accept
443+ ` const QColor&` . The twinkle restore branch in `onTwinkleStep` now also calls
444+ ` item->set_color(twinkleSavedColor)` and `item->set_opacity(twinkleSavedOpacity)` before
445+ issuing the restore command, keeping the model consistent after animation.
0 commit comments