fix(g1/data): PBR-Preflight und SQL-Mitgliedschaftsabfragen (#425)
* fix(pbr): preflight all requested glTF overrides before changing any face assets * fix(groups): implement principal membership queries for SQL backends * fix(groups): implement principal membership queries for SQL backends * fix(pbr): validate factor vector length and finite glTF color values before commit * test(pbr): reject invalid factor vectors before a material write * docs(data): narrow PBR and SQL membership integrity scope with E2E gates * ci(g1): run Regression-test PBR atomic material preflight before optional native dependencies
This commit is contained in:
1 parent
429fd8a19f
commit
c7cf5b21ef
6 files changed
+153
-14
No files matched your search
@@ -345,13 +345,22 @@ namespace OpenSim.Data.MySQL
|
||||
#region combinations
|
||||
public MembershipData RetrievePrincipalGroupMembership(string principalID, UUID groupID)
|
||||
{
|
||||
// TODO
|
||||
return null;
|
||||
if (string.IsNullOrWhiteSpace(principalID) || groupID.IsZero())
|
||||
return null;
|
||||
|
||||
MembershipData[] matches = m_Membership.Get(
|
||||
new[] { "GroupID", "PrincipalID" },
|
||||
new[] { groupID.ToString(), principalID });
|
||||
return matches is { Length: > 0 } ? matches[0] : null;
|
||||
}
|
||||
|
||||
public MembershipData[] RetrievePrincipalGroupMemberships(string principalID)
|
||||
{
|
||||
// TODO
|
||||
return null;
|
||||
if (string.IsNullOrWhiteSpace(principalID))
|
||||
return Array.Empty<MembershipData>();
|
||||
|
||||
return m_Membership.Get("PrincipalID", principalID) ??
|
||||
Array.Empty<MembershipData>();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user