Skip to content

Commit

Permalink
Fixed head part sync issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Piranha91 authored and Piranha91 committed Apr 2, 2023
1 parent 0808625 commit fce2378
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions SynthEBD/Classes_Aux/ViewModels/VM_HeadPartList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ public void CopyInFromModel(Settings_HeadPartType model, ObservableCollection<VM
foreach (var hp in model.HeadParts)
{
HeadPartList.Add(_placeHolderFactory(hp, HeadPartList));
//var viewModel = _headPartFactory(hp.HeadPartFormKey, _oBodySettings.DescriptorUI, raceGroupingVMs, HeadPartList, _headPartMenuVM);
//HeadPartList.Add(viewModel);
//Task.Run(() => viewModel.CopyInFromModel(hp, raceGroupingVMs, attributeGroupMenu, _oBodySettings.DescriptorUI, _headPartMenuVM, HeadPartList, _attributeCreator, _logger, _descriptorSelectionFactory, _environmentProvider.LinkCache));
}

TypeRuleSet.CopyInFromModel(model);
Expand Down
2 changes: 1 addition & 1 deletion SynthEBD/Classes_Core/Views/UC_HeadPartCategoryRules.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<CheckBox Grid.Row="12" Grid.Column="2" IsChecked="{Binding Path=bAllowNonUnique, Mode=TwoWay}"></CheckBox>

<TextBlock Grid.Row="13" Grid.Column="0" Margin="0 0 15 0" VerticalAlignment="Center" ToolTip="Probability of randomizing this head part type" ToolTipService.IsEnabled="{Binding Source={x:Static local:TooltipController.Instance}, Path=DisplayToolTips}"> Distribution Probability</TextBlock>
<TextBox Grid.Row="13" Grid.Column="2" MinWidth="50" TextAlignment="Left" PreviewTextInput="NumericOnly" Text="{Binding Path=DistributionProbability}"/>
<TextBox Grid.Row="13" Grid.Column="2" MinWidth="50" TextAlignment="Left" PreviewTextInput="NumericOnly" Text="{Binding Path=DistributionProbability, UpdateSourceTrigger=PropertyChanged}"/>

<!--OBody-->
<TextBlock Grid.Row="14" Grid.Column="0" Margin="0 0 15 0" VerticalAlignment="Top" Visibility="{Binding ParentMenu.BodyShapeMode, Converter={StaticResource BSVisibilityConverter}}" ToolTip="Body shape descriptors that a BodySlide must have to be paired with these headparts" ToolTipService.IsEnabled="{Binding Source={x:Static local:TooltipController.Instance}, Path=DisplayToolTips}">Allowed BodySlide Descriptors</TextBlock>
Expand Down

0 comments on commit fce2378

Please sign in to comment.